Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular 6 Update - rxjs-5-to-6-migrate command not found

Tags:

In the upgrade process from update.angular.io:

Remove deprecated RxJS 6 features using rxjs-tslint auto update rules.

For most applications this will mean running the following two commands:

npm install -g rxjs-tslint rxjs-5-to-6-migrate -p src/tsconfig.app.json 

But when I follow these steps and run rxjs-5-to-6-migrate -p src/tsconfig.app.json I'm getting the error:

rxjs-5-to-6-migrate: command not found 

Is there any reason why this command isn't working?

like image 363
Kyle Krzeski Avatar asked May 14 '18 12:05

Kyle Krzeski


Video Answer


1 Answers

I did get it working and my steps are the following:

  1. Install rxjs-tslint locally - cd YOUR_PROJECT_DIR && npm i rxjs-tslint.
  2. Then run from your project root node_modules/.bin/rxjs-5-to-6-migrate -p PATH_TO_YOUR_TSCONFIG.json.
  3. If you get an error saying something like rxjs-tslint/node_modules/.bin/tslint: not found, then do cd node_modules/rxjs-tslint && npm install and repeat the step 2.
like image 122
epidemiya30 Avatar answered Sep 22 '22 12:09

epidemiya30