无法添加ionic-platform-web-client

时间:2016-01-01 09:30:35

标签: ionic-framework ionic ionic-view

$ ionic add ionic-platform-web-client


Failed to find the bower component "ionic-platform-web-client".
Are you sure it exists? (CLI v1.7.12)

Your system information:

Cordova CLI: 5.4.1
Gulp version:  CLI version 3.9.0
Gulp local:   Local version 3.9.0
Ionic Version: 1.2.1
Ionic CLI Version: 1.7.12
Ionic App Lib Version: 0.6.5
OS: Distributor ID: Ubuntu Description: Ubuntu 14.04.3 LTS 
Node Version: v4.2.2

我尝试了以下命令,并没有像其他stackoverflow Q& A中所建议的那样提供帮助。

 bower install --allow-root --save-dev ionic-platform-web-client

当我在mac中尝试时也是同样的问题。附上了错误信息。

ionic add ios



Failed to find the bower component "ios".
Are you sure it exists? (CLI v1.7.12)

Your system information:

Cordova CLI: 5.4.1
Ionic Version: 1.1.0
Ionic CLI Version: 1.7.12
Ionic App Lib Version: 0.6.5
ios-deploy version: 1.8.3 
ios-sim version: 5.0.4 
OS: Mac OS X El Capitan
Node Version: v4.2.4
Xcode version: Xcode 6.4 Build version 6E35b 

1 个答案:

答案 0 :(得分:8)

以下命令可能会解决您的问题: -

bower install --save-dev ionic-platform-web-client