Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

npm install --build-from-source fails #11

Closed
mmomtchev opened this issue Nov 7, 2022 · 1 comment
Closed

npm install --build-from-source fails #11

mmomtchev opened this issue Nov 7, 2022 · 1 comment

Comments

@mmomtchev
Copy link
Owner

mmomtchev commented Nov 7, 2022

npm install --build-from-source fails because node-addon-api is a devDependency

Error: Cannot find module 'node-addon-api'
Require stack:
- /home/mmom/src/test/node_modules/pymport/[eval]
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
    at Function.Module._load (internal/modules/cjs/loader.js:746:27)
    at Module.require (internal/modules/cjs/loader.js:974:19)
    at require (internal/modules/cjs/helpers.js:101:18)
    at [eval]:1:1
    at Script.runInThisContext (vm.js:134:12)
    at Object.runInThisContext (vm.js:310:38)
    at internal/process/execution.js:81:19
    at [eval]-wrapper:6:22
    at evalScript (internal/process/execution.js:80:60) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/home/mmom/src/test/node_modules/pymport/[eval]' ]

Workaround is to manually install node-addon-api

npm install node-addon-api
@mmomtchev mmomtchev changed the title npm install --rebuild-from-source fails npm install --build-from-source fails Nov 7, 2022
@mmomtchev
Copy link
Owner Author

Fixed by 32cf93d

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant