webpack+es6+react 无法webpack-dev-server

发布于 2022-09-03 00:58:24 字数 3523 浏览 10 评论 0

0 info it worked if it ends with ok
1 verbose cli [ 'D:\\DevTool\\nodejs\\node.exe',
1 verbose cli   'D:\\DevTool\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'run',
1 verbose cli   'dev' ]
2 info using npm@3.8.6
3 info using node@v5.11.0
4 verbose run-script [ 'predev', 'dev', 'postdev' ]
5 info lifecycle wp005@1.0.0~predev: wp005@1.0.0
6 silly lifecycle wp005@1.0.0~predev: no script for predev, continuing
7 info lifecycle wp005@1.0.0~dev: wp005@1.0.0
8 verbose lifecycle wp005@1.0.0~dev: unsafe-perm in lifecycle true
9 verbose lifecycle wp005@1.0.0~dev: PATH: D:\DevTool\nodejs\node_modules\npm\bin\node-gyp-bin;E:\WorkSpace\Sublime3\Demo\wp005\node_modules\.bin;D:\DevTool\nodejs;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;D:\DevTool\Git\cmd;D:\DevTool\Git\mingw32\bin;D:\DevTool\Git\usr\bin;C:\Program Files\Java\jdk1.8.0\bin;C:\Program Files\Java\jdk1.8.0\jre\bin;D:\DevTool\nodejs\;C:\Program Files\TortoiseGit\bin;C:\Users\glodon\AppData\Roaming\npm
10 verbose lifecycle wp005@1.0.0~dev: CWD: E:\WorkSpace\Sublime3\Demo\wp005
11 silly lifecycle wp005@1.0.0~dev: Args: [ '/d /s /c',
11 silly lifecycle   'webpack-dev-server --port 8090 --devtool eval --progress --colors --hot --content-base build' ]
12 silly lifecycle wp005@1.0.0~dev: Returned: code: 3221225501  signal: null
13 info lifecycle wp005@1.0.0~dev: Failed to exec dev script
14 verbose stack Error: wp005@1.0.0 dev: `webpack-dev-server --port 8090 --devtool eval --progress --colors --hot --content-base build`
14 verbose stack Exit status 3221225501
14 verbose stack     at EventEmitter.<anonymous> (D:\DevTool\nodejs\node_modules\npm\lib\utils\lifecycle.js:239:16)
14 verbose stack     at emitTwo (events.js:100:13)
14 verbose stack     at EventEmitter.emit (events.js:185:7)
14 verbose stack     at ChildProcess.<anonymous> (D:\DevTool\nodejs\node_modules\npm\lib\utils\spawn.js:24:14)
14 verbose stack     at emitTwo (events.js:100:13)
14 verbose stack     at ChildProcess.emit (events.js:185:7)
14 verbose stack     at maybeClose (internal/child_process.js:850:16)
14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
15 verbose pkgid wp005@1.0.0
16 verbose cwd E:\WorkSpace\Sublime3\Demo\wp005
17 error Windows_NT 6.1.7600
18 error argv "D:\\DevTool\\nodejs\\node.exe" "D:\\DevTool\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "dev"
19 error node v5.11.0
20 error npm  v3.8.6
21 error code ELIFECYCLE
22 error wp005@1.0.0 dev: `webpack-dev-server --port 8090 --devtool eval --progress --colors --hot --content-base build`
22 error Exit status 3221225501
23 error Failed at the wp005@1.0.0 dev script 'webpack-dev-server --port 8090 --devtool eval --progress --colors --hot --content-base build'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the wp005 package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error     webpack-dev-server --port 8090 --devtool eval --progress --colors --hot --content-base build
23 error You can get information on how to open an issue for this project with:
23 error     npm bugs wp005
23 error Or if that isn't available, you can get their info via:
23 error     npm owner ls wp005
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

︶ ̄淡然 2022-09-10 00:58:24

请问解决了吗?是什么问题?我也遇到这个问题

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文