PhoneGap中文网

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

ionic添加platform失败,报以下错误,请赐教,谢谢

[复制链接]

1

主题

1

帖子

7

积分

新手上路

Rank: 1

积分
7
跳转到指定楼层
楼主
发表于 2016-1-27 21:54:10 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
8580端口没有被其他程序占用

G:\workspaces\ionic\myApp>ionic platform add android
Updated the hooks directory to have execute permissions
Error: Failed to fetch platform android
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.
Error: connect ECONNREFUSED 127.0.0.1:8580

G:\workspaces\ionic\myApp>ionic platform add ios
Updated the hooks directory to have execute permissions
Adding icons for platform: ios
WARNING: Applications for platform ios can not be built on this OS - win32.
Error: Failed to fetch platform ios
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.
Error: connect ECONNREFUSED 127.0.0.1:8580

回复

使用道具 举报

11

主题

529

帖子

1418

积分

金牌会员

Rank: 6Rank: 6

积分
1418
沙发
发表于 2016-1-28 12:15:36 | 只看该作者
1.ios需要在mac 系统xcode安装的情况下面创建

2.android的问题可能是网络问题,你可以重新创建项目 重新add试试

还有就是 确保cordova 安装成功了
回复 支持 反对

使用道具 举报

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

本版积分规则

关闭

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

ionic4视频教程

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

GMT+8, 2024-5-21 00:24 , Processed in 0.051527 second(s), 34 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

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