Angularjs 可以在phonecat应用程序上运行npm安装

Angularjs 可以在phonecat应用程序上运行npm安装,angularjs,Angularjs,我在学习教程的同时在 来自npm-debug.log的日志如下 verbose raw, before any munging shelljs verbose url resolving [ 'https://registry.npmjs.org/', './shelljs' ] verbose url resolved https://registry.npmjs.org/shelljs http GET https://registry.npmjs.org/shelljs ERR! Err

我在学习教程的同时在

来自npm-debug.log的日志如下

 verbose raw, before any munging shelljs
verbose url resolving [ 'https://registry.npmjs.org/', './shelljs' ]
verbose url resolved https://registry.npmjs.org/shelljs
http GET https://registry.npmjs.org/shelljs
ERR! Error: failed to fetch from registry: shelljs
ERR!     at /usr/share/npm/lib/utils/npm-registry-client/get.js:139:12
ERR!     at cb (/usr/share/npm/lib/utils/npm-registry-client/request.js:31:9)  

........
ERR!     at ClientRequest.<anonymous> (/usr/lib/nodejs/request/main.js:412:12)
ERR!     at ClientRequest.emit (events.js:67:17)
ERR!     at HTTPParser.onIncoming (http.js:1261:11)
ERR!     at HTTPParser.onHeadersComplete (http.js:102:31) 
verbose raw,在任何咀嚼外壳之前
详细url解析['https://registry.npmjs.org/“,”./shelljs']
已解析详细urlhttps://registry.npmjs.org/shelljs
http获取https://registry.npmjs.org/shelljs
犯错误错误:无法从注册表获取:shelljs
犯错误在/usr/share/npm/lib/utils/npm registry client/get.js:139:12
犯错误在cb(/usr/share/npm/lib/utils/npm registry client/request.js:31:9)
........
犯错误在ClientRequest。(/usr/lib/nodejs/request/main.js:412:12)
犯错误在ClientRequest.emit(events.js:67:17)
犯错误在HTTPParser.onIncoming(http.js:1261:11)
犯错误在HTTPParser.onHeadersComplete(http.js:102:31)

有没有人遇到过类似的问题

这可能有效,也可能无效。但是尝试使用GIT下载应用程序,而不是下载zip,然后输入GIT配置——全局url。“https://”。而不是GIT://


当我试图在Windows10上下载AngularSeed项目时,我遇到了这个问题。我安装了GIT命令行。然后,我没有下载ZIP,而是使用GIT命令行下载项目。对于网络问题,我输入了git config--global url.“https://”。而不是其他人提到的git://查看日志文件
/home/seneca/Downloads/angular phonecat master/npm debug.log
。可能会得到一些提示。我刚刚做了一个新的克隆,并成功地运行了npm安装,如果您再次运行它会发生什么?我收到了相同的错误。试图运行“npm start”命令。仔细查看后,我在日志中看到一条消息:“这很可能是angular phonecat软件包的问题,npm ERR!而不是npm本身。”解决方案如下:
 verbose raw, before any munging shelljs
verbose url resolving [ 'https://registry.npmjs.org/', './shelljs' ]
verbose url resolved https://registry.npmjs.org/shelljs
http GET https://registry.npmjs.org/shelljs
ERR! Error: failed to fetch from registry: shelljs
ERR!     at /usr/share/npm/lib/utils/npm-registry-client/get.js:139:12
ERR!     at cb (/usr/share/npm/lib/utils/npm-registry-client/request.js:31:9)  

........
ERR!     at ClientRequest.<anonymous> (/usr/lib/nodejs/request/main.js:412:12)
ERR!     at ClientRequest.emit (events.js:67:17)
ERR!     at HTTPParser.onIncoming (http.js:1261:11)
ERR!     at HTTPParser.onHeadersComplete (http.js:102:31)