noobaa-core
noobaa-core copied to clipboard
Cannot build using npm
Environment info
- NooBaa Version: Master ( https://github.com/noobaa/noobaa-core/commit/d639630781307daa2d553374072412674938d219 )
Actual behavior
-
npm install
--> working -
npm run build:native
--> working -
npm run build:core
--> failing
Expected behavior
-
npm install
--> working -
npm run build:native
--> working -
npm run build:core
--> working
More information - Screenshots / Logs / Other output
npm run build:core
command fails with:
...
/bin/sh: /home/yiannis/Workspaces/hybrid-storage/noobaa-core/node_modules/pkg/node_modules/.bin/prebuild-install: No such file or directory
/bin/sh: /home/yiannis/Workspaces/hybrid-storage/noobaa-core/node_modules/pkg/node_modules/.bin/prebuild-install: No such file or directory
/bin/sh: /home/yiannis/Workspaces/hybrid-storage/noobaa-core/node_modules/pkg/node_modules/.bin/prebuild-install: No such file or directory
...
Just a clarification, the build process works, I can see the created binaries. It might be related to this: https://github.com/vercel/pkg/issues/1075 When I downgraded pkg to 4.4.x the error went away
Hi @YiannisGkoufas
you are correct, pkg introduced prebuild-install
in https://github.com/vercel/pkg/pull/1066 which is in 4.5.x and is not in 4.4.x
@guymguym suggested to run npm install --save-dev prebuild-install
before npm run build:core