0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

node fibers arm64が入ってなかった

Posted at

ubuntuARMイメージに、
コピってきたnode_moduleにはfibersのArm64環境用がなくてwebpackが立ち上げられなかった

## There is an issue with `node-fibers` ##
`/var/www/subsystem/bo/oej_robotics_cms/ejs/projectroot/node_modules/fibers/bin/linux-arm64-72-glibc/fibers.node` is missing.

Try running this to fix the issue: /usr/bin/node /hogehoge/node_modules/fibers/build
Error: Cannot find module '/hogehoge/node_modules/fibers/bin/linux-arm64-72-glibc/fibers'
Require stack:
〜〜〜
$ ll /node_modules/fibers/bin/
total 4
drwxr-xr-x 13 aaa bbb  416 Apr  5 17:49 ./
drwxr-xr-x 17 aaa bbb  544 Apr  5 17:49 ../
drwxr-xr-x  3 aaa bbb   96 Apr  5 17:49 darwin-arm64-108/
drwxr-xr-x  3 aaa bbb   96 Apr  5 17:49 darwin-x64-72/
drwxr-xr-x  3 aaa bbb   96 Apr  5 17:49 darwin-x64-83/
drwxr-xr-x  3 aaa bbb   96 Apr  5 17:49 linux-x64-64-glibc/
drwxr-xr-x  3 aaa bbb   96 Apr  5 17:49 linux-x64-72-glibc/
drwxr-xr-x  3 aaa bbb   96 Apr  5 17:49 linux-x64-72-musl/
drwxr-xr-x  3 aaa bbb   96 Apr  5 17:49 linux-x64-83-glibc/
drwxr-xr-x  3 aaa bbb   96 Apr  5 17:49 linux-x64-83-musl/
-rwxr-xr-x  1 aaa bbb 1175 Mar  8 15:32 repl*
drwxr-xr-x  3 aaa bbb   96 Apr  5 17:49 win32-x64-72/
drwxr-xr-x  3 aaa bbb   96 Apr  5 17:49 win32-x64-83/

たしかに無い・・

npm rebuildを実行

$ npm rebuild fibers
rebuilt dependencies successfully
drwxr-xr-x  3 aaaa bbb   96 Apr 18 18:14 linux-arm64-72-glibc/

キターーーーー

無事なんとかなりました
(M1 Mac Dockerなので、ARM Ubuntu使いたかったが、上記の問題でたから、Rosetta 2でIntelUbuntu動かそうとしたが、Apache起動せずで、トホホしてたが、命拾いした・・)

ちなみにnodeのバージョンは

$ node -v
v12.22.9

node v16だとまた厳しそうみたいだけどどうなんだろう・・

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?