1

I created my project using angular 6 but due to some reasons i want to rollback to angular 5,I tried following commands but it is showing some errors.

node version- 10.4.1

npm version-6.1.0

npm ERR! code ETARGET
npm ERR! notarget No matching version found for @angular/cli@1.7.
npm ERR! notarget In most cases you or one of your dependencies are 
requesting
npm ERR! notarget a package version that doesn't exist.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\TEKIZMA USER\AppData\Roaming\npm-cache\_logs\2018-06- 
27T0
_21_53_446Z-debug.log
piet.t
  • 11,718
  • 21
  • 43
  • 52

2 Answers2

1

Please try to follow this Stack Answer

According to my knowledge first, try to downgrade NPM then angular. And you might need to read this too.

Try possibly this way

npm install -g @angular/cli@YOUR_DESIRED_VERSION
Sagar Ahuja
  • 726
  • 6
  • 23
  • you're welcome @NishthaJain if you feel the answer is helpful please upvote and accept it so it can help others. – Sagar Ahuja Jul 06 '18 at 08:42
-1

You do not need to reinstall global version of Angular CLI.

Instead, you can use NPX library like:

npx -p @angular/cli@<version> new <app-name>

user3007799
  • 137
  • 1
  • 8