Linux compiler error: Error: Can not find module 'chalk'
Because change directory or more dependent reinstalled.
1. When the input npm run *, the compiler is reported the following error
2. Solution (personal recommendation second)
1. delete the code directory, re-deploy code
or:
2. delete the original node_modules rely reinstall, (execute two commands)
rm -rf node_modules
npm install
3. recompile
Compile successful! carry out
Reproduced in: https: //www.jianshu.com/p/c95f19046d1b