在开发机上执行webpack-dev-server报错,求解
在电脑上映射了一个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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
node换成32位的就好了,不知道64位的有什么BUG。。