Closed missweetcxx closed 3 years ago
按文档升级icejs后,npm start可正常运行,但是npm run build就报错;
具体报错log如下: """ 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:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js', 1 verbose cli 'run', 1 verbose cli 'build' 1 verbose cli ] 2 info using npm@6.14.6 3 info using node@v12.18.3 4 verbose run-script [ 'prebuild', 'build', 'postbuild' ] 5 info lifecycle @icedesign/cms-scaffold@3.0.5~prebuild: @icedesign/cms-scaffold@3.0.5 6 info lifecycle @icedesign/cms-scaffold@3.0.5~build: @icedesign/cms-scaffold@3.0.5 7 verbose lifecycle @icedesign/cms-scaffold@3.0.5~build: unsafe-perm in lifecycle true 9 verbose lifecycle @icedesign/cms-scaffold@3.0.5~build: CWD: D:\Users\xx.cai\projects-fe\posidon 10 silly lifecycle @icedesign/cms-scaffold@3.0.5~build: Args: [ '/d /s /c', 'icejs build' ] 11 silly lifecycle @icedesign/cms-scaffold@3.0.5~build: Returned: code: 1 signal: null 12 info lifecycle @icedesign/cms-scaffold@3.0.5~build: Failed to exec build script 13 verbose stack Error: @icedesign/cms-scaffold@3.0.5 build: icejs build 13 verbose stack Exit status 1
icejs build
13 verbose stack at ChildProcess.emit (events.js:315:20) 13 verbose stack at maybeClose (internal/child_process.js:1021:16) 13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5) 14 verbose pkgid @icedesign/cms-scaffold@3.0.5
18 verbose node v12.18.3 19 verbose npm v6.14.6 20 error code ELIFECYCLE 21 error errno 1 22 error @icedesign/cms-scaffold@3.0.5 build: icejs build 22 error Exit status 1 23 error Failed at the @icedesign/cms-scaffold@3.0.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 ] """
@missweetcxx 使用官方的 demo 是否也存在 start 通过,build 报错的问题?
@missweetcxx 重装依赖试一下,如果还不行的话最好能提供一个 demo 项目,我们跑一下看看。
按文档升级icejs后,npm start可正常运行,但是npm run build就报错;
具体报错log如下: """ 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:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js', 1 verbose cli 'run', 1 verbose cli 'build' 1 verbose cli ] 2 info using npm@6.14.6 3 info using node@v12.18.3 4 verbose run-script [ 'prebuild', 'build', 'postbuild' ] 5 info lifecycle @icedesign/cms-scaffold@3.0.5~prebuild: @icedesign/cms-scaffold@3.0.5 6 info lifecycle @icedesign/cms-scaffold@3.0.5~build: @icedesign/cms-scaffold@3.0.5 7 verbose lifecycle @icedesign/cms-scaffold@3.0.5~build: unsafe-perm in lifecycle true 9 verbose lifecycle @icedesign/cms-scaffold@3.0.5~build: CWD: D:\Users\xx.cai\projects-fe\posidon 10 silly lifecycle @icedesign/cms-scaffold@3.0.5~build: Args: [ '/d /s /c', 'icejs build' ] 11 silly lifecycle @icedesign/cms-scaffold@3.0.5~build: Returned: code: 1 signal: null 12 info lifecycle @icedesign/cms-scaffold@3.0.5~build: Failed to exec build script 13 verbose stack Error: @icedesign/cms-scaffold@3.0.5 build:
icejs build
13 verbose stack Exit status 113 verbose stack at ChildProcess.emit (events.js:315:20) 13 verbose stack at maybeClose (internal/child_process.js:1021:16) 13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5) 14 verbose pkgid @icedesign/cms-scaffold@3.0.5
18 verbose node v12.18.3 19 verbose npm v6.14.6 20 error code ELIFECYCLE 21 error errno 1 22 error @icedesign/cms-scaffold@3.0.5 build:
icejs build
22 error Exit status 1 23 error Failed at the @icedesign/cms-scaffold@3.0.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 ] """