vue打包的时候,使用npm run build一直报错,找了好久都没有弄清楚,有没有大神能解?

0 info it worked if it ends with ok
1 verbose cli [ 'E:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'E:\\Program Files\\nodejs\\node_global\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'run',
1 verbose cli   'build' ]
2 info using npm@6.9.0
3 info using node@v8.11.3
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle myproj@1.0.0~prebuild: myproj@1.0.0
6 info lifecycle myproj@1.0.0~build: myproj@1.0.0
7 verbose lifecycle myproj@1.0.0~build: unsafe-perm in lifecycle true
8 verbose lifecycle myproj@1.0.0~build: PATH: E:\Program Files\nodejs\node_global\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;G:\VUE\vue-demo1\node_modules\.bin;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;E:\Program Files (x86)\MySQL\MySQL Server 5.5\bin;E:\Program Files\nodejs\node_global;E:\Program Files\Git\cmd;E:\Program Files\apache-ant-1.9.13\bin;E:\Program Files\Java\jdk1.7\jdk1.7.0_80\bin;E:\Program Files\Java\jdk1.7\jdk1.7.0_80\jre\bin;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps;G:\apache-tomcat-7.0.68\bin;G:\apache-tomcat-7.0.68\lib;E:\apache-maven-3.6.0\bin;E:\Program Files\TortoiseSVN\bin;C:\Users\Administrator\AppData\Roaming\npm;E:\Program Files\nodejs;E:\Program Files\nodejs\node_global
9 verbose lifecycle myproj@1.0.0~build: CWD: G:\VUE\vue-demo1
10 silly lifecycle myproj@1.0.0~build: Args: [ '/d /s /c', 'node build/build.js' ]
11 silly lifecycle myproj@1.0.0~build: Returned: code: 1  signal: null
12 info lifecycle myproj@1.0.0~build: Failed to exec build script
13 verbose stack Error: myproj@1.0.0 build: `node build/build.js`
13 verbose stack Exit status 1
13 verbose stack     at EventEmitter.<anonymous> (E:\Program Files\nodejs\node_global\node_modules\npm\node_modules\npm-lifecycle\index.js:301:16)
13 verbose stack     at emitTwo (events.js:126:13)
13 verbose stack     at EventEmitter.emit (events.js:214:7)
13 verbose stack     at ChildProcess.<anonymous> (E:\Program Files\nodejs\node_global\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack     at emitTwo (events.js:126:13)
13 verbose stack     at ChildProcess.emit (events.js:214:7)
13 verbose stack     at maybeClose (internal/child_process.js:925:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
14 verbose pkgid myproj@1.0.0
15 verbose cwd G:\VUE\vue-demo1
16 verbose Windows_NT 10.0.17134
17 verbose argv "E:\\Program Files\\nodejs\\node.exe" "E:\\Program Files\\nodejs\\node_global\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
18 verbose node v8.11.3
19 verbose npm  v6.9.0
20 error code ELIFECYCLE
21 error errno 1
22 error myproj@1.0.0 build: `node build/build.js`
22 error Exit status 1
23 error Failed at the myproj@1.0.0 build script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 12
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 12
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值