cmd运行报错如下:
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! industrialKnowledgeBase-web@1.0.0 dev: `webpack-dev-server --inline --p
rogress --config build/webpack.dev.conf.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the industrialKnowledgeBase-web@1.0.0 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional log
ging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\xinpei.lv\AppData\Roaming\npm-cache\_logs\2020-12-28T08_20
_02_875Z-debug.log
看了网上的方法删除nodel-modules文件夹,执行 npm install 出现下面警告
> node lib/post_install.js
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\fs
events):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@
1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"
})
added 1291 packages from 694 contributors and audited 1296 packages in 221.808s
found 511 vulnerabilities (488 low, 10 moderate, 13 high)
run `npm audit fix` to fix them, or `npm audit` for details
忽视继续运行仍然如图一所示。
待解决。。。。
破案了,是因为我之前不小心把config->下的dev.env.js里的几行代码删除了,代码补完就可以运行了