問題:npm run dev 報錯以下 (參考:https://stackoverflow.com/questions/42308879/npm-err-code-elifecycle)node
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