You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When trying to install the dependency only with not devDependencies an error is raised.
When only npm install is called, the installation is working.
root:/opt/test# npm install --only=prod
npm ERR! code 127
npm ERR! path /opt/test/node_modules/node-rfc
npm ERR! command failed
npm ERR! command sh -c prebuild-install -r napi || cmake-js rebuild
npm ERR! sh: 1: prebuild-install: not found
npm ERR! sh: 1: cmake-js: not found
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-03-31T10_25_06_456Z-debug.log
To Reproduce
Create a new project with npm. Add node-rfc as dependency. Delete the node_modules folder and run npm install --only=prod
When adding the following two dependencies to my dependencies it is working:
prebuilt-install
cmake-js
Is this by design or should both dependencies moved from devDependencies to dependencies?
Environment
The output of node -p "require('node-rfc').environment"
Is this by design or should both dependencies moved from devDependencies to dependencies?
According to prebuild documentation, only prebuild-install is mandatory dependency, moreover at application level. The installation should therefore work like:
Could you please check it it works in your environment?
I would move only prebuild-install to dependencies (from dev dependencies) because cmake-js requires native CMake which can't be installed "on the fly", together with other dependencies.
Describe the bug
When trying to install the dependency only with not
devDependencies
an error is raised.When only
npm install
is called, the installation is working.To Reproduce
Create a new project with npm. Add
node-rfc
as dependency. Delete thenode_modules
folder and runnpm install --only=prod
When adding the following two dependencies to my
dependencies
it is working:prebuilt-install
cmake-js
Is this by design or should both dependencies moved from
devDependencies
todependencies
?Environment
node -p "require('node-rfc').environment"
The text was updated successfully, but these errors were encountered: