Reputation: 5194
I'm upgrading my app to angular 6 and following this guide. But the upgrade process is NOT as smooth as they claim it to be.
I'm currently struggling trying to migrate rxjs 5 to 6 using the following command.
rxjs-5-to-6-migrate -p src/tsconfig.app.json
What I did:
First I ran: npm install -g rxjs-tslint
which gave me the output below:
npm WARN [email protected] requires a peer of typescript@>=2.1.0 || >=2.1.0-dev || >=2.2.0-dev || >=2.3.0-dev || >=2.4.0-dev || >=2.5.0-dev || >=2.6.0-dev || >=2.7.0-dev || >=2.8.0-dev but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of typescript@>=2.1.0 || >=2.1.0-dev || >=2.2.0-dev || >=2.3.0-dev || >=2.4.0-dev || >=2.5.0-dev || >=2.6.0-dev || >=2.7.0-dev || >=2.8.0-dev || >=2.9.0-dev || >= 3.0.0-dev || >= 3.1.0-dev but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of typescript@>=2.1.0 || >=2.1.0-dev || >=2.2.0-dev || >=2.3.0-dev || >=2.4.0-dev || >=2.5.0-dev || >=2.6.0-dev || >=2.7.0-dev || >=2.8.0-dev || >=2.9.0-dev but none is installed. You must install peer dependencies yourself.
So I then manually installed these missing peer dependencies.
The I ran: rxjs-5-to-6-migrate -p src/tsconfig.app.json
and I got the output below:
Running the automatic migrations. Please, be patient and wait until the execution completes.
child_process.js:644
throw err;
^
Error: Command failed: "/usr/local/lib/node_modules/rxjs-tslint/node_modules/.bin/tslint" -c "/usr/local/lib/node_modules/rxjs-tslint/rxjs-5-to-6-migrate.json" -p "src/tsconfig.app.json" --fix
at checkExecSyncError (child_process.js:601:13)
at Object.execSync (child_process.js:641:13)
at migrate (/usr/local/lib/node_modules/rxjs-tslint/rxjs-5-to-6-migrate.js:18:34)
at Object.<anonymous> (/usr/local/lib/node_modules/rxjs-tslint/rxjs-5-to-6-migrate.js:25:14)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
I can't seem to fix it, I've tried googling the issue and still no luck.
Upvotes: 2
Views: 2629
Reputation: 2977
Try these 2 : First update rxjs to version 5.5 and fix issues if any, then try to migrate from 5 to 6 or Delete node_modules folder and install again.
Upvotes: 1