gpt4 book ai didi

node.js - 退出状态 1 npm-lifecycle\index.js :285:16

转载 作者:太空狗 更新时间:2023-10-29 17:39:07 25 4
gpt4 key购买 nike

0 silly lifecycle stork.spa@1.0.0~build.prod: Args: [ '/d /s /c',
10 silly lifecycle 'gulp build.prod --color --env-config prod --build-type prod --base /cli/ --theme dark' ]
11 silly lifecycle stork.spa@1.0.0~build.prod: Returned: code: 1 signal: null
12 info lifecycle stork.spa@1.0.0~build.prod: Failed to exec build.prod script
13 verbose stack Error: stork.spa@1.0.0 build.prod: `gulp build.prod --color --env-config prod --build-type prod --base /cli/ --theme dark`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (C:\Users\user\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\index.js:285: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> (C:\Users\user\AppData\Roaming\npm\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 stork.spa@1.0.0
15 verbose cwd C:\dev\JWT\Mvc\StorkCMS\Stork.SPA
16 verbose Windows_NT 10.0.17025
17 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\user\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "run" "build.prod"
18 verbose node v8.9.3
19 verbose npm v5.6.0
20 error code ELIFECYCLE
21 error errno 1
22 error stork.spa@1.0.0 build.prod: `gulp build.prod --color --env-config prod --build-type prod --base /cli/ --theme dark`
22 error Exit status 1
23 error Failed at the stork.spa@1.0.0 build.prod script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

在 AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\lib 中没有 index.js 只有 spawn.js

最佳答案

如果你使用的是 rxjs 库,那么确保你改变了

import { Observable } from 'rxjs/Rx';

import { Observable } from 'rxjs/observable';

在你的工作空间

然后确保将 typescript 还原/升级到 v 2.3.4 并将 rxjs 还原/升级到 5.6.0。执行 npm clean 缓存并重新构建。

这对我有用。看来 rxjs 库和 typescript 版本的兼容性存在一些问题。

希望这对您有所帮助。

关于node.js - 退出状态 1 npm-lifecycle\index.js :285:16,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47895318/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com