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
When I run npm install in my project, I get an error saying Cannot find module 'node-addon-api'.
The issue does not occur if I run npm install in the folder of the dependency, and then run npm install again in my project.
I tested with three different native librairies and reproduced each time. For one of them I also tested using the npm public registry instead of a local filesystem reference and the issue did not occur: the issue only occurs when using local filesystem paths to reference the library.
I'm not sure which component is responsible for this issue, or whether it is an issue or an expected behavior.
I have a project referencing a native module on the local filesystem.
For example:
When I run
npm install
in my project, I get an error sayingCannot find module 'node-addon-api'
.The issue does not occur if I run
npm install
in the folder of the dependency, and then runnpm install
again in my project.I tested with three different native librairies and reproduced each time. For one of them I also tested using the npm public registry instead of a local filesystem reference and the issue did not occur: the issue only occurs when using local filesystem paths to reference the library.
I'm not sure which component is responsible for this issue, or whether it is an issue or an expected behavior.
Thanks
Verbose output (from npm or node-gyp):
The text was updated successfully, but these errors were encountered: