修改npm源的方式

作者: admin 日期: 2015-12-02 10:29:12 人气: - 评论: 0

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

我是使用第一种方式,操作成功

相关内容

发表评论
更多 网友评论0 条评论)
暂无评论

Copyright © 2012-2014 我的代码板 Inc. 保留所有权利。

页面耗时0.0237秒, 内存占用1.83 MB, 访问数据库13次

闽ICP备15009223号-1