vuedevtools打包失败,急需解决!!!
Win10系统一直提示打包失败,怎样解决?
错误如下:
'webpack' is not recognized as an internal or external command,
operable program or batch file.
events.js:200
throw er; // Unhandled 'error' event
^
Error: spawn webpack ENOENT
at notFoundError (G:\vue-devtools-dev\vue-devtools-dev\node_modules\cross-sp
awn\lib\enoent.js:6:26)
at verifyENOENT (G:\vue-devtools-dev\vue-devtools-dev\node_modules\cross-spa
wn\lib\enoent.js:40:16)
at ChildProcess.cp.emit (G:\vue-devtools-dev\vue-devtools-dev\node_modules\c
ross-spawn\lib\enoent.js:27:25)
at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
Emitted 'error' event on ChildProcess instance at:
at ChildProcess.cp.emit (G:\vue-devtools-dev\vue-devtools-dev\node_modules\c
ross-spawn\lib\enoent.js:30:37)
at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12) {
code: 'ENOENT',
errno: 'ENOENT',
syscall: 'spawn webpack',
path: 'webpack',
spawnargs: [ '--progress', '--hide-modules' ]
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! vue-devtools@5.3.4 build: `cd packages/shell-chrome && cross-env NODE_E
NV=production webpack --progress --hide-modules`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the vue-devtools@5.3.4 build 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\admin\AppData\Roaming\npm-cache\_logs\2021-02-17T06_31_26_
506Z-debug.log