无法添加离子平台网络客户端

unable to add ionic-platform-web-client

$ 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

我尝试了以下命令,但没有像其他 Whosebug 问答中建议的那样提供帮助。

 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 

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

bower 安装 --save-dev ionic-platform-web-client