npm run dev 报错:

问题:npm run dev 报错以下  (参考:https://stackoverflow.com/questions/42308879/npm-err-code-elifecyclenode

sh: egg-bin: command not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! app-feekback@1.0.0 dev: `egg-bin dev`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the app-feekback@1.0.0 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/wykay/.npm/_logs/2018-07-03T07_18_06_762Z-debug.logapp

 

解决:this

Step 1: npm cache clean --forcespa

Step 2: delete node_modules folderdebug

Step 3: npm installcode

相关文章
相关标签/搜索