npm ERR! Windows_NT 6.1.7601
npm ERR! argv "E:\\node\\\\node.exe" "E:\\node\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v0.12.0
npm ERR! npm v2.5.1
npm ERR! code ECONNRESET

npm ERR! network tunneling socket could not be established, cause=connect ECONNREFUSED
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'

npm ERR! Please include the following file with any support request:
npm ERR! E:\study\angular-phonecat\npm-debug.log

错误代码如上:

解决办法:

删除npmrc文件。

使用镜像

镜像使用方法(三种办法任意一种都能解决问题,建议使用第三种,将配置写死,下次用的时候配置还在):

1.通过config命令

 
1
2
npm config set registry http://registry.cnpmjs.org
npm info underscore (如果上面配置正确这个命令会有字符串response)

2.命令行指定

 
1
npm --registry http://registry.cnpmjs.org info underscore

3.编辑 ~/.npmrc 加入下面内容

 
1
registry = http://registry.cnpmjs.org

结果:

E:\study\angular-phonecat>npm config set registry http://registry.cnpmjs.org

E:\study\angular-phonecat>npm install
npm WARN package.json karma-chrome-launcher@0.1.7 No README data

> angular-phonecat@0.0.0 postinstall E:\study\angular-phonecat
> bower install

bower angular-resource#1.3.x not-cached git://github.com/angular/bower-angular-resource.git#1.3.x
bower angular-resource#1.3.x resolve git://github.com/angular/bower-angular-resource.git#1.3.x
bower angular#1.3.x cached git://github.com/angular/bower-angular.git#1.3.14
bower angular#1.3.x validate 1.3.14 against git://github.com/angular/bower-angular.git#1.3.x
bower bootstrap#~3.1.1 cached git://github.com/twbs/bootstrap.git#3.1.1
bower bootstrap#~3.1.1 validate 3.1.1 against git://github.com/twbs/bootstrap.git#~3.1.1
bower angular-animate#1.3.x not-cached git://github.com/angular/bower-angular-animate.git#1.3.x
bower angular-animate#1.3.x resolve git://github.com/angular/bower-angular-animate.git#1.3.x
bower angular-mocks#1.3.x cached git://github.com/angular/bower-angular-mocks.git#1.3.14
bower angular-mocks#1.3.x validate 1.3.14 against git://github.com/angular/bower-angular-mocks.git#1.3.x
bower jquery#~2.1.1 cached git://github.com/jquery/jquery.git#2.1.3
bower jquery#~2.1.1 validate 2.1.3 against git://github.com/jquery/jquery.git#~2.1.1
bower angular-route#1.3.x not-cached git://github.com/angular/bower-angular-route.git#1.3.x
bower angular-route#1.3.x resolve git://github.com/angular/bower-angular-route.git#1.3.x
bower angular-resource#1.3.x download https://github.com/angular/bower-angular-resource/archive/v1.3.14.tar.gz
bower angular-animate#1.3.x download https://github.com/angular/bower-angular-animate/archive/v1.3.14.tar.gz
bower angular-route#1.3.x download https://github.com/angular/bower-angular-route/archive/v1.3.14.tar.gz
bower angular-resource#1.3.x extract archive.tar.gz
bower angular-resource#1.3.x resolved git://github.com/angular/bower-angular-resource.git#1.3.14
bower angular-animate#1.3.x extract archive.tar.gz
bower angular-animate#1.3.x resolved git://github.com/angular/bower-angular-animate.git#1.3.14
bower angular-route#1.3.x extract archive.tar.gz
bower angular-route#1.3.x resolved git://github.com/angular/bower-angular-route.git#1.3.14
bower angular-mocks#1.3.x install angular-mocks#1.3.14
bower angular#1.3.x install angular#1.3.14
bower jquery#~2.1.1 install jquery#2.1.3
bower bootstrap#~3.1.1 install bootstrap#3.1.1
bower angular-resource#1.3.x install angular-resource#1.3.14
bower angular-animate#1.3.x install angular-animate#1.3.14
bower angular-route#1.3.x install angular-route#1.3.14

angular-mocks#1.3.14 app\bower_components\angular-mocks
└── angular#1.3.14

angular#1.3.14 app\bower_components\angular

jquery#2.1.3 app\bower_components\jquery

bootstrap#3.1.1 app\bower_components\bootstrap
└── jquery#2.1.3

angular-resource#1.3.14 app\bower_components\angular-resource
└── angular#1.3.14

angular-animate#1.3.14 app\bower_components\angular-animate
└── angular#1.3.14

angular-route#1.3.14 app\bower_components\angular-route
└── angular#1.3.14

E:\study\angular-phonecat>

npm ERR!无法安装任何包的解决办法的更多相关文章

  1. npm install 错误 安装 chromedriver 失败的解决办法

    npm 安装 chromedriver 失败的解决办法npm 安装 chromedriver 时,偶尔会出错,错误提示类似于:npm ERR! chromedriver@2.35.0 install: ...

  2. centos7离线安装rpm包自动解决依赖

    离线安装rpm包自动解决依赖参照https://blog.csdn.net/u011396718/article/details/80153515当生产环境由于安全原因处于断网状态的时候.通过本地源的 ...

  3. R语言—如何安装Github包的解决方法,亲测有效

    R语言—如何安装Github包的解决方法,亲测有效 准备安装材料: R包-REmap GitHub下载地址:https://github.com/lchiffon/REmap R包-baidumap ...

  4. eclipse android 不会自动生成R.java文件和包的解决办法

    eclipse下编写android程序突然不会自动生成R.java文件和包的解决办法   我的eclipse原来是好好的,什么问题都没有的,结果今天一打开新建一个android程序,发现工程里不会自动 ...

  5. 在ubuntu16.04+python3.5情况下安装nltk,以及gensim时pip3安装不成功的解决办法

    在ubuntu16.04+python3.5情况下安装nltk,以及gensim时pip3安装不成功的解决办法,我刚开始因为不太会用linux命令,所以一直依赖于python 的pip命令,可是怎么都 ...

  6. 在R语言环境中无法载入rJava包的解决办法

    问题描述: 安装包xlsx包后,运行library("xlsx")后弹出错误窗口: RGui (64-bit): Rgui.exe - 系统错误 无法启动此程序,因为计算机中丢失 ...

  7. windows 2008R2 无法安装操作系统补丁,或无法安装Sp1升级包的解决办法

    windows 2008R2 无法安装操作系统补丁,或无法安装Sp1升级包的解决办法 给 C:\ 加上users读取和执行,,列出文件夹内容,及读取的权限,不需要就用到子目录 将 C:\Windows ...

  8. Win7安装错误提示与解决办法大全

    Windows7安装时有许多提示错误,许多朋友不知道如何解决,那就看看这篇软媒整理的文章吧,或许有些帮助.本文出现的问题同样应用于其他版本的Windows 7,甚至是Vista,收藏一下本文,或者某天 ...

  9. Linux中oracle安装时候报ora-00119解决办法

    ORA-00119: invalid specification for system parameter LOCAL_LISTENER ORA-00130: invalid listener add ...

随机推荐

  1. Windows计算机功能Java源码

    代码如下 import java.awt.Color; import java.awt.Container; import java.awt.GridLayout; import java.awt.e ...

  2. aspx页面与服务器控件间运行原理

    一.进入服务器控件以及aspx页面前,必须的准备: a)在WebForm 中只要带有runat="server" 那么那就是一个控件. b)如果form有runat="s ...

  3. Cannot change version of project facet Dynamic web的解决方法

    用Eclipse创建Maven结构的web项目的时候选择了Artifact Id为maven-artchetype-webapp,由于这个catalog比较老,用的servlet还是2.3的,而一般现 ...

  4. Azkaban 作业调度

    转载一篇不错的文章:http://www.cnblogs.com/smartloli/p/5191155.html

  5. SVN客户端解决authorization failed问题

    遇到authorization failed问题 进人 [root@localhost conf]# pwd /opt/svndata/shell/conf [root@localhost conf] ...

  6. 转:浅谈关于b、h标签的优化技巧

    <b>标签优化 <b>标签是一种加粗标记,作用就是加粗文章中的关键词,对于文章中重要的关键词加粗起到有利于用户阅读的作用.<b>标签的使用对于优化的作用是非常大的, ...

  7. 极路由1s手工安装ss插件

    1.极路由申请开放root权限,将会失去保修,不过100块的东西还保修个什么 2.用putty连接极路由注意端口号 3. 然后一段一段执行下面的代码,很简单,复制一个段落的代码,粘贴进去,回车执行. ...

  8. Nob畅想在线教育

    1.社交网络的课堂实时互动 老师上课,每当和同学们互动时大家下边总是保持沉默,低着头,几乎每人拿着一部手机在看,还有pad等. 张星老师的课算是好一点,学生可以抬着头然后手下边捏着手机,时不时低头看一 ...

  9. Spark官方文档——本地编写并运行scala程序

    快速开始 本文将介绍如何用scala.java.python编写一个spark单击模式的程序. 首先你只需要在一台机器上成功建造Spark:做法: 进入Spark的根目录,输入命令:$ sbt/sbt ...

  10. 【Weblogic】--Weblogic的部署方式和缓存

    参考网址: http://dead-knight.iteye.com/blog/1938882 Weblogic11g部署web应用,有三种方式,非常简单,但是很多新手部署总是出现若干错误,不知道如何 ...