0

How can install a specific version of Angular 4 using node package manager? I ran npm view @angular/cli versions command , the available version displayed are

I could not see version 4 and 5 in the list how could i download the version 4 or 5

3
  • Possible duplicate of Get previous versions of a package in NPM Commented Aug 29, 2018 at 14:44
  • My issue is totally different from the issue @Vlad274 Commented Aug 29, 2018 at 15:01
  • There is no version 4 or 5 of @angular/cli. Prior to the v6 release the version numbers were out of sync. Some brief research recommends cli version 1.4.10 for Angular 4 and 1.7.4 for Angular 5. YMMV as these are old packages and may have bugs that were addressed in later release. Commented Aug 29, 2018 at 15:11

2 Answers 2

1

If you want to install this specific version of the angular cli you have to use this command:

npm install -g @angular/[email protected]

Perhaps you have an other version currently installed on your system you should read this also.

source: Angular downgrade from version 5 to 4

Sign up to request clarification or add additional context in comments.

4 Comments

I ran npm view @angular/cli versions command, its does not displays version 4 and 5
please run ng -v and see whats Angular CLI version
I tried npm install -g @angular/cli and it downloaded the latest version of angular cli and angular
how about running npm install -g @angular/[email protected] instead!
1

To install a particular version you need to run the following command line

npm install -g @angular/cli@<version>

Example:

npm install -g @angular/[email protected]

You can see the available versions with the following command:

npm view @angular/cli

1 Comment

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.