Reputation: 185
I used version 2.4 of angular 2.
This problem has occurred
(Uncaught ReferenceError: __ng_jsonp____req0_finished is not defined at)
I decided to follow the instructions.
I want to change to version 2.3
npm install -g [email protected] --save-dev
I typed this command at the terminal.
The result is an error message
└─┬ [email protected]
├── UNMET PEER DEPENDENCY @angular/[email protected]
├── UNMET PEER DEPENDENCY
@angular/[email protected]
├── UNMET PEER DEPENDENCY
@angular/[email protected]
├── UNMET PEER DEPENDENCY
@angular/[email protected]
├── UNMET PEER DEPENDENCY
@angular/[email protected]
├── [email protected] (git://github.com/webpack/compression-webpack-plugin.git#7e55907cd54a2e91b96d25a660acc6a2a6453f54)
├── UNMET PEER DEPENDENCY
[email protected]
├── UNMET PEER DEPENDENCY
[email protected]
└── UNMET PEER DEPENDENCY
[email protected]
I want to turn off the angular-cli. I want to install angulacli 2.3 again.
Someone please tell me the procedure
Upvotes: 1
Views: 778
Reputation: 507
The angular-cli can be a little b*tch when it comes to uninstalling or updating. I had several problems when trying out other versions or changing stuff on it.
As Suren Srapyan suggested use
npm unsintall -g angular-cli
when using the versions prior to (i think) 1.0.0-beta.28
and
npm unsintall -g @angular/cli
for versions after that.
Also try to npm cache clean
BEFORE installing another version as (as of the told b*tchy behaviour of the cli) it sometimes seems to lay eggs in the cache ruining the fun of updating it.
Upvotes: 0