Angular 2 通过 npm 快速启动安装失败 (Link - https://angular.io/docs/js/latest/quickstart.html)

Angular 2 Quickstart install failing via npm (Link - https://angular.io/docs/js/latest/quickstart.html)

如 link 中所述,我一直试图在我的 Ubuntu 15.10 机器上获取 Angular 2 运行,但我收到以下错误消息和安装失败。

我也尝试通过 npm package 命令安装 Angular 2,即 sudo npm install angular2@2.0.0-alpha.32 但这给出了同样的错误。

如有任何帮助,我们将不胜感激。谢谢。

这是错误。它在底部提到的日志不能在这里发布,因为它超过了 1000 行。

sudo npm install
npm WARN package.json angular2-quickstart@1.0.0 No description
npm WARN package.json angular2-quickstart@1.0.0 No repository field.
npm WARN package.json angular2-quickstart@1.0.0 No README data
npm ERR! 404 Not Found
npm ERR! 404 
npm ERR! 404 'angular/common' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404 It was specified as a dependency of 'angular2-quickstart'
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, or http url, or git url.

npm ERR! System Linux 4.2.0-16-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/anshuman/angular2-quickstart
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.4.21
npm ERR! code E404
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/anshuman/angular2-quickstart/npm-debug.log
npm ERR! not ok code 0

您必须为最新版本更新您的节点和 npm。

node -v
v4.4.7

npm  -v
3.10.5

同时尝试清除您的 npm 缓存

npm cache clear