0.0.4 • Published 4 years ago

cm-confirm-alert v0.0.4

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

if getting any error like, cann't find module 'open' internal/modules/cjs/loader.js:797 throw err; ^

Error: Cannot find module 'open' Require stack:

  • D:\stacking-plan package\server.js at Function.Module._resolveFilename (internal/modules/cjs/loader.js:794:15) at Function.Module._load (internal/modules/cjs/loader.js:687:27) at Module.require (internal/modules/cjs/loader.js:849:19) at require (internal/modules/cjs/helpers.js:74:18) at Module._compile (internal/modules/cjs/loader.js:956:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10) at Module.load (internal/modules/cjs/loader.js:812:32) at Function.Module._load (internal/modules/cjs/loader.js:724:14) at Function.Module.runMain (internal/modules/cjs/loader.js:1025:10) { code: 'MODULE_NOT_FOUND', requireStack: 'D:\stacking-plan package\server.js' } npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! stacking-plan@0.0.1 start: node server.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the stacking-plan@0.0.1 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

bcz: That's because you're installing open with the global flag (-g). Run the npm install as npm i --save open and it should work.