小作坊007 发表于 2016-1-27 21:54:10

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

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

ionicwang 发表于 2016-1-28 12:15:36

1.ios需要在mac 系统xcode安装的情况下面创建

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

还有就是 确保cordova 安装成功了
页: [1]
查看完整版本: ionic添加platform失败,报以下错误,请赐教,谢谢