windows下安装express失败
2015-12-24 17:24
232 查看
安装express npm ERR! Windows_NT 6.3.9600
使用npm安装一些包失败了的看过来(npm国内镜像介绍)
镜像使用方法(三种办法任意一种都能解决问题,建议使用第三种,将配置写死,下次用的时候配置还在):
1.通过config命令
2.命令行指定
3.编辑
使用npm安装一些包失败了的看过来(npm国内镜像介绍)
镜像使用方法(三种办法任意一种都能解决问题,建议使用第三种,将配置写死,下次用的时候配置还在):
1.通过config命令
npm config set registry https://registry.npm.taobao.org npm info underscore (如果上面配置正确这个命令会有字符串response)
2.命令行指定
npm --registry https://registry.npm.taobao.org info underscore
3.编辑
~/.npmrc加入下面内容
registry = https://registry.npm.taobao.org[/code]
搜索镜像: https://npm.taobao.org
建立或使用镜像,参考: https://github.com/cnpm/cnpmjs.org
提示:
使用npm config set 也是跟第三种方法一样,把所谓的user config写入到 ~/.npmrc文件的!!
相关文章推荐
- Linux命令:cd
- 手机端的各种默认样式比如 ios的按钮变灰色
- Netty自定义协议开发
- [原力与物理]原力觉醒
- Prim算法的C语言实现(邻接矩阵)
- 程序员每天该做的事
- connection reset errors 的解决办法
- CentOS7.2安装MySQL 5.7.10
- Oracle基础(五)pl/sql进阶(分页过程)
- 5.5---整数A转成整数B(CC150)
- iOS上级往下级传值
- 弹出窗口两种方式
- python实现决策树C4.5算法(在ID3基础上改进)
- WinInet, WinHttp, Winsock, ws2_32的基本解释
- Allen 谈 Docker 系列
- Java实现文件重命名
- SAS学习笔记2
- MFC 生成中英文版软件对应的工程属性设置
- vsphere安装xen后,卡在“载入初始化内存”解决办法
- 正向代理与反向代理的区别