我正在努力添加离子服务核心,以便将通知添加到我正在处理的离子项目中。但是,我不能让服务核心安装。任何这样做的企图都会导致以下结果:
Failed to find the bower component "ionic-service-core".
Are you sure it exists? (CLI v1.4.0-alpha.6)
Your system information:
OS: Mac OS X Yosemite
Node Version: v0.10.33
Cordova CLI: 5.0.0
Ionic Version: 1.0.0-rc.5
Ionic CLI Version: 1.4.0-alpha.6
Xcode version: Xcode 6.3.1 Build version 6D1002
ios-sim version: Not installed有人有使用离子和新服务包的经验吗?有什么线索会导致这一切吗?
发布于 2015-05-16 01:03:43
看起来整个事情都是用户.config文件的权限问题。如果您只是删除位于User/username/. .config的.config文件夹,然后重试添加组件,它们就能工作了。
发布于 2015-05-16 17:54:54
若要测试是否安装了bower,请运行命令bower。如果无法识别,请使用命令npm install -g bower安装,然后运行ionic add ionic-service-core。
这在Windows上对我起作用了。
发布于 2015-09-02 14:28:23
这里有一个对我有用的技巧,您可以首先使用bower安装来安装您的软件包,然后使用离子型add来查找先前安装的bower包:
因为我是代理的幕后黑手。
https://stackoverflow.com/questions/30270660
复制相似问题