vue项目启动失败要如何解决?报错 TypeError: webpack.NoEmitOnErrorsPlugin is not

发布于 2022-09-13 00:14:17 字数 3768 浏览 18 评论 0

项目代码:https://github.com/ruisibi/rs...

错误日志:

0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli   'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'run',
1 verbose cli   'dev'
1 verbose cli ]
2 info using npm@6.14.9
3 info using node@v14.15.3
4 verbose run-script [ 'predev', 'dev', 'postdev' ]
5 info lifecycle rsbi-vue@1.0.0~predev: rsbi-vue@1.0.0
6 info lifecycle rsbi-vue@1.0.0~dev: rsbi-vue@1.0.0
7 verbose lifecycle rsbi-vue@1.0.0~dev: unsafe-perm in lifecycle true
8 verbose lifecycle rsbi-vue@1.0.0~dev: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;G:\demo\rsbi\rsbi-vue-master\node_modules\.bin;C:\Program Files\MySQL\mysql-5.7.31-winx64\bin;C:\Program Files (x86)\VMware\VMware Workstation\bin\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;E:\GRAPHCIZ\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files\nodejs\;C:\ProgramData\chocolatey\bin;C:\Program Files\Git\cmd;C:\Program Files (x86)\NetSarang\Xftp 7\;C:\Program Files\Redis\;C:\Python\Python38\Scripts\;C:\Python\Python38\;C:\Users\0735\AppData\Local\Programs\Python\Python38\Scripts\;C:\Users\0735\AppData\Local\Programs\Python\Python38\;C:\Users\0735\AppData\Local\Programs\Python\Python37\Scripts\;C:\Users\0735\AppData\Local\Programs\Python\Python37\;C:\Users\0735\AppData\Local\Microsoft\WindowsApps;;C:\Users\0735\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\0735\AppData\Roaming\npm;C:\Program Files\JetBrains\IntelliJ IDEA 2021.1.2\bin;
9 verbose lifecycle rsbi-vue@1.0.0~dev: CWD: G:\demo\rsbi\rsbi-vue-master
10 silly lifecycle rsbi-vue@1.0.0~dev: Args: [
10 silly lifecycle   '/d /s /c',
10 silly lifecycle   'webpack-dev-server --inline --progress --config build/webpack.dev.conf.js'
10 silly lifecycle ]
11 silly lifecycle rsbi-vue@1.0.0~dev: Returned: code: 1  signal: null
12 info lifecycle rsbi-vue@1.0.0~dev: Failed to exec dev script
13 verbose stack Error: rsbi-vue@1.0.0 dev: `webpack-dev-server --inline --progress --config build/webpack.dev.conf.js`
13 verbose stack Exit status 1
13 verbose stack     at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
13 verbose stack     at EventEmitter.emit (events.js:315:20)
13 verbose stack     at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack     at ChildProcess.emit (events.js:315:20)
13 verbose stack     at maybeClose (internal/child_process.js:1048:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
14 verbose pkgid rsbi-vue@1.0.0
15 verbose cwd G:\demo\rsbi\rsbi-vue-master
16 verbose Windows_NT 10.0.19041
17 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "dev"
18 verbose node v14.15.3
19 verbose npm  v6.14.9
20 error code ELIFECYCLE
21 error errno 1
22 error rsbi-vue@1.0.0 dev: `webpack-dev-server --inline --progress --config build/webpack.dev.conf.js`
22 error Exit status 1
23 error Failed at the rsbi-vue@1.0.0 dev script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

请问要如何处理错误?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文