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
答案 0 :(得分:1)
如果您使用的是rxjs库,请确保更改
的值从'rxjs / Rx'导入{Observable};
到
从“ rxjs / observable”导入{Observable};
整个工作区
然后确保将打字稿还原/升级到v 2.3.4,并将rxjs升级到5.6.0。做一个npm clean缓存并重新构建。
这对我有用。 rxjs库和Typescript版本的兼容性似乎存在一些问题。
希望这会有所帮助。