为了账号安全,请及时绑定邮箱和手机立即绑定

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


正在回答

1 回答

安装最好用:cnpm i

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
vue2.5入门
  • 参与学习       146813    人
  • 解答问题       657    个

快速理解Vue编程理念上手Vue2.0开发。

进入课程

vuedevtools打包失败,急需解决!!!

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信