在开发机上执行webpack-dev-server报错,求解

发布于 2022-09-05 03:49:51 字数 3344 浏览 27 评论 0

在电脑上映射了一个Z盘,在Z盘中执行webpack-dev-server报错,在本地磁盘中执行就可以。。求解

下面是日志输出

0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\Users\\v_sunyiming\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'run',
1 verbose cli   'dev' ]
2 info using npm@5.0.4
3 info using node@v8.0.0
4 verbose run-script [ 'predev', 'dev', 'postdev' ]
5 info lifecycle malfunction@1.0.0~predev: malfunction@1.0.0
6 silly lifecycle malfunction@1.0.0~predev: no script for predev, continuing
7 info lifecycle malfunction@1.0.0~dev: malfunction@1.0.0
8 verbose lifecycle malfunction@1.0.0~dev: unsafe-perm in lifecycle true
9 verbose lifecycle malfunction@1.0.0~dev: PATH: C:\Users\v_sunyiming\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin;Z:\hello\baidu\atm-idp\ocean-web\resources\malfunction\node_modules\.bin;C:\Users\v_sunyiming\bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\local\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Users\v_sunyiming\bin;C:\ProgramData\Oracle\Java\javapath;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0;C:\Program Files\Git\cmd;C:\Program Files\nodejs;C:\Users\v_sunyiming\AppData\Roaming\npm;C:\Program Files\Git\usr\bin\vendor_perl;C:\Program Files\Git\usr\bin\core_perl
10 verbose lifecycle malfunction@1.0.0~dev: CWD: Z:\hello\baidu\atm-idp\ocean-web\resources\malfunction
11 silly lifecycle malfunction@1.0.0~dev: Args: [ '/d /s /c', 'webpack-dev-server' ]
12 silly lifecycle malfunction@1.0.0~dev: Returned: code: 3221226356  signal: null
13 info lifecycle malfunction@1.0.0~dev: Failed to exec dev script
14 verbose stack Error: malfunction@1.0.0 dev: `webpack-dev-server`
14 verbose stack Exit status 3221226356
14 verbose stack     at EventEmitter.<anonymous> (C:\Users\v_sunyiming\AppData\Roaming\npm\node_modules\npm\lib\utils\lifecycle.js:283:16)
14 verbose stack     at emitTwo (events.js:125:13)
14 verbose stack     at EventEmitter.emit (events.js:213:7)
14 verbose stack     at ChildProcess.<anonymous> (C:\Users\v_sunyiming\AppData\Roaming\npm\node_modules\npm\lib\utils\spawn.js:40:14)
14 verbose stack     at emitTwo (events.js:125:13)
14 verbose stack     at ChildProcess.emit (events.js:213:7)
14 verbose stack     at maybeClose (internal/child_process.js:887:16)
14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:208:5)
15 verbose pkgid malfunction@1.0.0
16 verbose cwd Z:\hello\baidu\atm-idp\ocean-web\resources\malfunction
17 verbose Windows_NT 6.1.7601
18 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\v_sunyiming\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "run" "dev"
19 verbose node v8.0.0
20 verbose npm  v5.0.4
21 error code ELIFECYCLE
22 error errno 3221226356
23 error malfunction@1.0.0 dev: `webpack-dev-server`
23 error Exit status 3221226356
24 error Failed at the malfunction@1.0.0 dev script.
24 error This is probably not a problem with npm. There is likely additional logging output above.
25 verbose exit [ 3221226356, true ]

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

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

发布评论

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

评论(1

坦然微笑 2022-09-12 03:49:51

node换成32位的就好了,不知道64位的有什么BUG。。

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