之前用的vue-element-admin@3.6.6 ,之后升级到vue-element-admin@3.11.0,执行 npm run dev 报错

狼王_ 河北工业大学 2021-10-11 14:36:45

我将build 和 config文件夹 替换为了 3.11.0版本的。

执行 npm run dev 后报错如下:

0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'dev' ]
2 info using npm@6.14.13
3 info using node@v14.17.0
4 verbose run-script [ 'predev', 'dev', 'postdev' ]
5 info lifecycle vue-element-admin@3.11.0~predev: vue-element-admin@3.11.0
6 info lifecycle vue-element-admin@3.11.0~dev: vue-element-admin@3.11.0
7 verbose lifecycle vue-element-admin@3.11.0~dev: unsafe-perm in lifecycle true
8 verbose lifecycle vue-element-admin@3.11.0~dev: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/zhangzaocha/Desktop/workspace/jyjj_web/node_modules/.bin:/Users/zhangzaocha/soft/flutter/bin:/opt/homebrew/opt/node@14/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Users/zhangzaocha/soft/flutter/bin:/opt/homebrew/opt/node@14/bin:/opt/homebrew/bin:/opt/homebrew/sbin
9 verbose lifecycle vue-element-admin@3.11.0~dev: CWD: /Users/zhangzaocha/Desktop/workspace/jyjj_web
10 silly lifecycle vue-element-admin@3.11.0~dev: Args: [
10 silly lifecycle   '-c',
10 silly lifecycle   'webpack-dev-server --inline --progress --config build/webpack.dev.conf.js'
10 silly lifecycle ]
11 silly lifecycle vue-element-admin@3.11.0~dev: Returned: code: 2  signal: null
12 info lifecycle vue-element-admin@3.11.0~dev: Failed to exec dev script
13 verbose stack Error: vue-element-admin@3.11.0 dev: `webpack-dev-server --inline --progress --config build/webpack.dev.conf.js`
13 verbose stack Exit status 2
13 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
13 verbose stack     at EventEmitter.emit (events.js:376:20)
13 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack     at ChildProcess.emit (events.js:376:20)
13 verbose stack     at maybeClose (internal/child_process.js:1055:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
14 verbose pkgid vue-element-admin@3.11.0
15 verbose cwd /Users/zhangzaocha/Desktop/workspace/jyjj_web
16 verbose Darwin 20.6.0
17 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "dev"
18 verbose node v14.17.0
19 verbose npm  v6.14.13
20 error code ELIFECYCLE
21 error errno 2
22 error vue-element-admin@3.11.0 dev: `webpack-dev-server --inline --progress --config build/webpack.dev.conf.js`
22 error Exit status 2
23 error Failed at the vue-element-admin@3.11.0 dev script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 2, true ]

...全文
632 点赞 收藏 回复
写回复
回复
切换为时间正序
请发表友善的回复…
发表回复

还没有回复,快来抢沙发~

相关推荐
发帖
Java|VUE|JS
创建于2021-06-08

507

社区成员

Thinking In Java|Web|JavaScript
帖子事件
创建了帖子
2021-10-11 14:36
社区公告

欢迎来到本社区:

JAVA专栏

面经专栏