退出状态1 npm-lifecycle \ index.js:285:16 [英] Exit status 1 npm-lifecycle\index.js:285:16

查看:1798
本文介绍了退出状态1 npm-lifecycle \ index.js:285:16的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

and in AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\lib there is no index.js only spawn.js

推荐答案

如果您使用的是rxjs库,请确保更改

If you are using rxjs library, then make sure you change the value of

从'rxjs/Rx'导入{Observable};

import { Observable } from 'rxjs/Rx';

从'rxjs/observable'导入{Observable};

import { Observable } from 'rxjs/observable';

整个工作区

然后确保将打字稿还原/升级到v 2.3.4,并将rxjs升级到5.6.0.做一个npm clean缓存并重新构建.

And then make sure you revert/upgrade your typescript to v 2.3.4 and rxjs to 5.6.0. Do a npm clean cache and build again.

这对我有用. rxjs库和Typescript版本的兼容性似乎存在一些问题.

This worked for me. It seems there is some problem in compatibility of rxjs library and typescript versions.

希望这会有所帮助.

这篇关于退出状态1 npm-lifecycle \ index.js:285:16的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆