Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
369 views
in Technique[技术] by (71.8m points)

创建ionic项目失败

正确安装了全局安装ionic和cordova之后
使用官网给的指令创建项目

clipboard.png

不知道是不是因为被墙的原因


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

执行 npm install 安装时报错了,如果模板项目已经下载成功的话,先按照下面步骤确认一下 npm 配置信息:

npm config get registry - 查看当前使用的 npm 仓库,若非国内镜像,推荐设置国内镜像,如设置淘宝镜像:

npm config set registry https://registry.npm.taobao.org

如果确认没问题的话,可以在命令行手动运行 npm install

友情提示:Ionic 3.x 发布了,https://github.com/driftyco/i...,基于Angular 4.0,也支持Lazy Loading 了。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...