Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I install angular version 1.1.5 via npm

I've tried:

npm install [email protected]

But it give me an error:

npm ERR! Error: version not found: 1.1.5 : angular/1.1.5

How can I install it?

like image 800
waitingkuo Avatar asked Jul 23 '13 11:07

waitingkuo


People also ask

How do I install a specific version of npm?

For npm install specific version, use npm install [package-name]@[version-number]. Use npm view [package-name] version to know the specific latest version of a package available on the npm registry. Use npm list [package-name] to know the specific latest version of an installed package.


2 Answers

Angular js is also available with npm. Just write the following line in your terminal.

 npm install angular

above command will install latest version of angular which is by default and for different version of the angular package use

npm install [email protected]

This will install angular js via npm only.

Note: Make sure you have npm installed in your operating system. Download Nodejs

like image 59
Shivek Parmar Avatar answered Sep 21 '22 13:09

Shivek Parmar


You need bower for the job (and git)!

Install it via npm

npm install -g bower

And then

bower install angular-unstable#1.1.5

It'll create a components directory with angular 1.1.5 inside.

You can install 3000+ components with bower.

like image 35
Oliver Avatar answered Sep 19 '22 13:09

Oliver