简体   繁体   中英

Error while npm install in Angular JS

Im new to Angular JS. I'm following the tutorial which is provided in Angular JS website. I've cloned the git project and when I try for npm install it gives me errors like

npm ERR! Error: failed to fetch from registry: shelljs
npm ERR!     at /usr/share/npm/lib/utils/npm-registry-client/get.js:139:12
npm ERR!     at cb (/usr/share/npm/lib/utils/npm-registry-client/request.js:31:9)
npm ERR!     at Request._callback (/usr/share/npm/lib/utils/npm-registry-    client/request.js:136:18)
npm ERR!     at Request.callback (/usr/lib/nodejs/request/main.js:119:22)
npm ERR!     at Request.<anonymous> (/usr/lib/nodejs/request/main.js:212:58)
npm ERR!     at Request.emit (events.js:88:20)
npm ERR!     at ClientRequest.<anonymous> (/usr/lib/nodejs/request/main.js:412:12)
npm ERR!     at ClientRequest.emit (events.js:67:17)
npm ERR!     at HTTPParser.onIncoming (http.js:1261:11)
npm ERR!     at HTTPParser.onHeadersComplete (http.js:102:31)
npm ERR! You may report this log at:
npm ERR!     <http://bugs.debian.org/npm>
npm ERR! or use
npm ERR!     reportbug --attach /home/bigc/Angular-Tutorial/angular-phonecat/npm-debug.log npm
npm ERR! 
npm ERR! System Linux 3.5.0-23-generic
npm ERR! command "node" "/usr/bin/npm" "install"
npm ERR! cwd /home/bigc/Angular-Tutorial/angular-phonecat
npm ERR! node -v v0.6.12
npm ERR! npm -v 1.1.4
npm ERR! message failed to fetch from registry: shelljs
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/bigc/Angular-Tutorial/angular-phonecat/npm-debug.log
npm not ok

Do I need to do anything other than cloning?

Cheers!

当我开始时,有时我也因克隆git仓库而出现错误,请检查您的github版本并在需要时进行更新,之后您可以直接转到angularjs的github页面,您想要查看的教程是在示例文件夹中,您不能在此处采用它的形式,也不能直接从页面右侧写的地址进行克隆。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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