问题:npm run dev 报错如下 (参考:https://stackoverflow.com/questions/42308879/npm-err-code-elifecycle)
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 ERR! A complete log of this run can be found in:
npm ERR! /Users/wykay/.npm/_logs/2018-07-03T07_18_06_762Z-debug.log
解决:
Step 1: npm cache clean --force
Step 2: delete node_modules folder
Step 3: npm install