简体   繁体   English

如何通过npm安装角度版本1.1.5

[英]How can I install angular version 1.1.5 via npm

I've tried: 我试过了:

npm install angular@1.1.5

But it give me an error: 但它给了我一个错误:

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

How can I install it? 我该如何安装?

Angular js is also available with npm. 角度js也可用于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 angular@1.1.5

This will install angular js via npm only. 这将仅通过npm安装角度js。

Note: Make sure you have npm installed in your operating system. 注意:确保在操作系统中安装了npm。 Download Nodejs 下载Nodejs

You need bower for the job (and git)! 你需要凉亭的工作(和git)!

Install it via npm 通过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. 它将在内部创建一个角度为1.1.5的组件目录。

You can install 3000+ components with bower. 您可以使用凉亭安装3000多个组件

It doesn't look like angular itself is available from npm. 从npm可以看出它本身不是棱角分明。 https://npmjs.org/search?q=angular https://npmjs.org/search?q=angular

There is a package for installing node + angular but it looks like it has 1.0.1 of angular in it. 有一个用于安装node + angular的包,但看起来它有1.0.1的角度。 Here is the github associated with that package. 这是与该包相关联的github。

https://github.com/edwardhotchkiss/node-angular/tree/master/lib/node-angular https://github.com/edwardhotchkiss/node-angular/tree/master/lib/node-angular

Update: angular does available from npm now. 更新:角度确实从npm现在可用。 https://www.npmjs.com/package/angular https://www.npmjs.com/package/angular

just newbies should know... 只是新手应该知道......

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM