PhoneGap中文网

 找回密码
 立即注册
查看: 33563|回复: 5
打印 上一主题 下一主题

ionic安装失败或者cordova安装失败解决方法

[复制链接]

493

主题

2035

帖子

6894

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
6894
跳转到指定楼层
楼主
发表于 2015-12-10 21:05:27 | 显示全部楼层 |只看大图 回帖奖励 |倒序浏览 |阅读模式

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


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

4、使用cnpm(强烈建议)


安装cnpm

npm install -g cnpm --registry=https://registry.npm.taobao.org

以后所有的npm可用cnpm代替,如:cnpm install ionic



搜索镜像: https://npm.taobao.org

建立或使用镜像,参考: https://github.com/cnpm/cnpmjs.org





回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

站长推荐 上一条 /1 下一条

ionic4视频教程

Archiver|手机版|小黑屋| PhoneGap中文网 ( 京ICP备13027796号-1 )  

GMT+8, 2024-5-4 06:25 , Processed in 0.036592 second(s), 27 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表