RxJs-5-to-6-migrate 崩溃 [英] RxJs-5-to-6-migrate crashes
本文介绍了RxJs-5-to-6-migrate 崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试将我的项目从 Angular 4 更新到 Angular 6.我遵循了 Angular 网站上的更新步骤,一切都进行得很顺利.但是,当尝试使用 rxjs-5-to-6-migrate 脚本时,它崩溃了.
I'm trying to update my project from Angular 4 to Angular 6. I followed the update steps found on the Angular website and all goes quite smoothly. However, when trying to use the rxjs-5-to-6-migrate script, it crashes.
我尝试了各种不同的路径,但似乎没有任何效果.
I've tried various variations of paths, but noothing seems to work.
我不知道发生了什么......
I've no idea what's going on...
PS D:\workspace\project> rxjs-5-to-6-migrate -p src/tsconfig.app.json
Running the automatic migrations. Please, be patient and wait until the execution completes.
child_process.js:615
throw err;
^
Error: Command failed: "d:\Applications\node-v9.11.1-win-x64\node_modules\rxjs-tslint\node_modules\.bin\tslint" -c "d:\Applications\node-v9.11.1-win-x64\node_modules\rxjs-tslint\rxjs-5-to-6-migrate.json" -p "src/tsconfig.app.json" --fix
at checkExecSyncError (child_process.js:575:11)
at Object.execSync (child_process.js:612:13)
at migrate (d:\Applications\node-v9.11.1-win-x64\node_modules\rxjs-tslint\rxjs-5-to-6-migrate.js:18:34)
at Object.<anonymous> (d:\Applications\node-v9.11.1-win-x64\node_modules\rxjs-tslint\rxjs-5-to-6-migrate.js:25:14)
at Module._compile (internal/modules/cjs/loader.js:654:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)
at Module.load (internal/modules/cjs/loader.js:566:32)
at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
at Function.Module._load (internal/modules/cjs/loader.js:498:3)
at Module.require (internal/modules/cjs/loader.js:598:17)
推荐答案
显然是过时的依赖项(可能是 tslint)导致了这种情况.更新 package.json 中的所有依赖项后,它起作用了.
Apparently it was a outdated dependency (probably tslint) what caused this. After updating all dependencies in the package.json, it worked.
这篇关于RxJs-5-to-6-migrate 崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文