Local package.json exists, but node_modules missing, did you mean to install?
목차
오늘도 만난 에러메세지
그 중 이 문장이 해결방법일 것같다.
Local package.json exists, but node_modules missing, did you mean to install?
package.json을 이용해서 module을 깔아야하는거 같은데
그걸 어떻게 하는지 모르겠다고..
으우
json이용해서 npm 모듈 깔기를 찾고 공부해봐야겠다
그전에 node.js 기본 활용법과
npm에 대해서 알아봐야겠네
C:\Project\openmct>npm list installed openmct@0.12.1-SNAPSHOT C:\Project\openmct `-- (empty) C:\Project\openmct>npm start > openmct@0.12.1-SNAPSHOT start C:\Project\openmct > node app.js module.js:472 throw err; ^ Error: Cannot find module 'minimist' at Function.Module._resolveFilename (module.js:470:15) at Function.Module._load (module.js:418:25) at Module.require (module.js:498:17) at require (internal/module.js:20:19) at C:\Project\openmct\app.js:14:19 at Object.<anonymous> (C:\Project\openmct\app.js:84:2) at Module._compile (module.js:571:32) at Object.Module._extensions..js (module.js:580:10) at Module.load (module.js:488:32) at tryModuleLoad (module.js:447:12) npm ERR! Windows_NT 10.0.14393 npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start" npm ERR! node v7.5.0 npm ERR! npm v4.1.2 npm ERR! code ELIFECYCLE npm ERR! openmct@0.12.1-SNAPSHOT start: `node app.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the openmct@0.12.1-SNAPSHOT start script 'node app.js'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the openmct package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node app.js npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs openmct npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls openmct npm ERR! There is likely additional logging output above. npm WARN Local package.json exists, but node_modules missing, did you mean to install? npm ERR! Please include the following file with any support request: npm ERR! C:\Project\openmct\npm-debug.log C:\Project\openmct>node app.js module.js:472 throw err; ^ Error: Cannot find module 'minimist' at Function.Module._resolveFilename (module.js:470:15) at Function.Module._load (module.js:418:25) at Module.require (module.js:498:17) at require (internal/module.js:20:19) at C:\Project\openmct\app.js:14:19 at Object.<anonymous> (C:\Project\openmct\app.js:84:2) at Module._compile (module.js:571:32) at Object.Module._extensions..js (module.js:580:10) at Module.load (module.js:488:32) at tryModuleLoad (module.js:447:12)