下载最新版halo-admin源码,执行如下命令时报错。
1.下载最新源码
2.npm i (这一步成功)
3.npm run build (这一步报错)
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli 'c:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'c:\\Users\\Admin\\AppData\\Roaming\\npm\\node_modules\\cnpm\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli '--userconfig=C:\\Users\\Admin\\.cnpmrc',
1 verbose cli '--disturl=https://npm.taobao.org/mirrors/node',
1 verbose cli '--registry=https://r.npm.taobao.org',
1 verbose cli 'run',
1 verbose cli 'build'
1 verbose cli ]
2 info using npm@6.14.11
3 info using node@v13.14.0
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle halo-admin@1.4.5~prebuild: halo-admin@1.4.5
6 info lifecycle halo-admin@1.4.5~build: halo-admin@1.4.5
7 verbose lifecycle halo-admin@1.4.5~build: unsafe-perm in lifecycle true
8 verbose lifecycle halo-admin@1.4.5~build: PATH: c:\Users\Admin\AppData\Roaming\npm\node_modules\cnpm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;E:\halo-admin-1.4.5\node_modules\.bin;c:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;c:\Program Files\Intel\Intel(R) Management Engine Components\DAL;c:\Program Files\Intel\Intel(R) Management Engine Components\IPT;c:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;c:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;c:\Program Files\Git\cmd;c:\Program Files\nodejs\;c:\Users\Admin\AppData\Roaming\npm
9 verbose lifecycle halo-admin@1.4.5~build: CWD: E:\halo-admin-1.4.5
10 silly lifecycle halo-admin@1.4.5~build: Args: [ '/d /s /c', 'vue-cli-service build' ]
11 silly lifecycle halo-admin@1.4.5~build: Returned: code: 1 signal: null
12 info lifecycle halo-admin@1.4.5~build: Failed to exec build script
13 verbose stack Error: halo-admin@1.4.5 build:
vue-cli-service build13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (c:\Users\Admin\AppData\Roaming\npm\node_modules\cnpm\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:315:20)
13 verbose stack at ChildProcess.<anonymous> (c:\Users\Admin\AppData\Roaming\npm\node_modules\cnpm\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:315:20)
13 verbose stack at maybeClose (internal/child_process.js:1026:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
14 verbose pkgid halo-admin@1.4.5
15 verbose cwd E:\halo-admin-1.4.5
16 verbose Windows_NT 6.1.7601
17 verbose argv "c:\\Program Files\\nodejs\\node.exe" "c:\\Users\\Admin\\AppData\\Roaming\\npm\\node_modules\\cnpm\\node_modules\\npm\\bin\\npm-cli.js" "--userconfig=C:\\Users\\Admin\\.cnpmrc" "--disturl=https://npm.taobao.org/mirrors/node" "--registry=https://r.npm.taobao.org" "run" "build"
18 verbose node v13.14.0
19 verbose npm v6.14.11
20 error code ELIFECYCLE
21 error errno 1
22 error halo-admin@1.4.5 build:
vue-cli-service build22 error Exit status 1
23 error Failed at the halo-admin@1.4.5 build script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]