使用所有rc1软件包的angular2 npm http 404 [英] angular2 npm http 404 with all rc1 packages

查看:54
本文介绍了使用所有rc1软件包的angular2 npm http 404的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试升级到Angular2 rc1,但是npm无法下载软件包:

Trying to upgrade to Angular2 rc1, but seems that npm is not able to download the packages:

{
  "name": "App",
  "version": "1.0.0",
  "license": "MIT",
  "dependencies": {
    "@angular/common": "2.0.0-rc.1",
    "@angular/compiler": "2.0.0-rc.1",
    "@angular/core": "2.0.0-rc.1",
    "@angular/platform-browser": "2.0.0-rc.1",
    "@angular/platform-browser-dynamic": "2.0.0-rc.1",
    "@angular/router": "2.0.0-rc.1",
    "@angular/http": "2.0.0-rc.1",

    "systemjs": "0.19.27",
    "es6-shim": "^0.35.0",
    "reflect-metadata": "^0.1.3",
    "rxjs": "5.0.0-beta.6",
    "zone.js": "^0.6.12"
  },
  "devDependencies": {
     "gulp": "3.9.1",
     "gulp-rimraf": "0.2.0",
     "gulp-uglify": "1.5.3",
     "gulp-concat": "2.6.0",
     "gulp-cssmin": "0.1.7",
     "gulp-replace": "0.5.4"
   }
}

和输出:

npm http GET https://registry.npmjs.org/es6-shim
npm http GET https://registry.npmjs.org/reflect-metadata
npm http GET https://registry.npmjs.org/angular/common
npm http GET https://registry.npmjs.org/angular/compiler
npm http GET https://registry.npmjs.org/angular/core
npm http GET https://registry.npmjs.org/angular/platform-browser-dynamic
npm http GET https://registry.npmjs.org/rxjs
npm http GET https://registry.npmjs.org/angular/router
npm http GET https://registry.npmjs.org/angular/http
npm http GET https://registry.npmjs.org/systemjs
npm http GET https://registry.npmjs.org/zone.js
npm http GET https://registry.npmjs.org/angular/platform-browser
npm http 304 https://registry.npmjs.org/reflect-metadata
npm http 404 https://registry.npmjs.org/angular/common
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 'App'
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 Windows_NT 6.1.7601
npm ERR! command "npm" "install"
npm ERR! cwd ...
npm ERR! node -v v0.10.31
npm ERR! npm -v 1.4.9
npm ERR! code E404
npm http 404 https://registry.npmjs.org/angular/platform-browser-dynamic
npm http 404 https://registry.npmjs.org/angular/core
npm http 404 https://registry.npmjs.org/angular/compiler
npm http 304 https://registry.npmjs.org/systemjs
npm http 304 https://registry.npmjs.org/es6-shim
npm http 304 https://registry.npmjs.org/rxjs
npm http 404 https://registry.npmjs.org/angular/http
npm http 404 https://registry.npmjs.org/angular/platform-browser
npm http 404 https://registry.npmjs.org/angular/router
npm http 304 https://registry.npmjs.org/zone.js

所有gulp软件包都已成功下载,这告诉我我的环境正常运行.所以一定要有注册吗?

All gulp packages are downloaded successfully which tells me my environment is functional. So it must be something with registration?

推荐答案

您需要升级节点和npm安装.至少,在使用节点0.10和类似的旧版本npm时,我遇到了同样的错误,现在我已经升级到节点6.0.0和npm 3.8.6,那么一切正常.

You'll need to upgrade your node and npm installations. At least, I was getting the same error just now while using node 0.10 and some similarly ancient version of npm, and now I've upgraded to node 6.0.0 and npm 3.8.6 then everything is working.

这篇关于使用所有rc1软件包的angular2 npm http 404的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆