登录
注册
node.js 学习社区
npm run build打包 报Failed at the paas@2.0.0 build script.错误。

小丘丘求助A

2020-12-10 19:58

具体是这样的我下载了一个依赖包(image-conversion),没下载之前的打包是正常的,下载完这个包之后,打包的就报错了(这个是有亲测过的)。有无大神指点指点!

回复 · 1

  • 报错信息

    0 info it worked if it ends with ok

    1 verbose cli [

    1 verbose cli 'D:\\node\\node.exe',

    1 verbose cli 'D:\\node\\node_modules\\npm\\bin\\npm-cli.js',

    1 verbose cli 'run',

    1 verbose cli 'build'

    1 verbose cli ]

    2 info using npm@6.14.8

    3 info using node@v14.15.1

    4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]

    5 info lifecycle paas@2.0.0~prebuild: paas@2.0.0

    6 info lifecycle paas@2.0.0~build: paas@2.0.0

    7 verbose lifecycle paas@2.0.0~build: unsafe-perm in lifecycle true

    8 verbose lifecycle paas@2.0.0~build: PATH: D:\node\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;D:\project\ebscnforum-htvue\node_modules\.bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;D:\Git\cmd;D:\node\;D:\node\node_global;D:\bin;C:\Users\admin\AppData\Local\Microsoft\WindowsApps;C:\Users\admin\AppData\Roaming\npm;D:\WebStorm 2020.3\bin;;D:\Microsoft VS Code\bin;

    9 verbose lifecycle paas@2.0.0~build: CWD: D:\project\ebscnforum-htvue

    10 silly lifecycle paas@2.0.0~build: Args: [ '/d /s /c', 'node build/build.js MICROSERVICE' ]

    11 silly lifecycle paas@2.0.0~build: Returned: code: 1 signal: null

    12 info lifecycle paas@2.0.0~build: Failed to exec build script

    13 verbose stack Error: paas@2.0.0 build: `node build/build.js MICROSERVICE`

    13 verbose stack Exit status 1

    13 verbose stack at EventEmitter.<anonymous> (D:\node\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> (D:\node\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:1048:16)

    13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)

    14 verbose pkgid paas@2.0.0

    15 verbose cwd D:\project\ebscnforum-htvue

    16 verbose Windows_NT 10.0.19042

    17 verbose argv "D:\\node\\node.exe" "D:\\node\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"

    18 verbose node v14.15.1

    19 verbose npm v6.14.8

    20 error code ELIFECYCLE

    21 error errno 1

    22 error paas@2.0.0 build: `node build/build.js MICROSERVICE`

    22 error Exit status 1

    23 error Failed at the paas@2.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 ]



    0

发表回复

你可以在回复中 @ 其他人