现象描述:
npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @ dev: `webpack-dev-server ‐‐inline ‐‐hot ‐‐open ‐‐port 5008` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @ 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! D:\nodejs\npm_cache\_logs\2021-01-16T03_12_55_866Z-debug.log
原因分析:
代码细节出错!
、- - 这两个有什么不同???
中英文的短横线在webstorm中体现不出来
解决方案:
横线换成英文的