首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装phonegap-plugin-push cordova-ios版本>= 5时出错

安装phonegap-plugin-push cordova-ios版本>= 5时出错
EN

Stack Overflow用户
提问于 2020-01-04 02:46:06
回答 1查看 1.2K关注 0票数 0

我在ionic 3上有一个应用程序,在将cordova-ios升级到5.0之后,我不能再安装phonegap- plugin -push插件。

请看我得到的错误:

代码语言:javascript
复制
> cordova plugin add phonegap-plugin-push
Installing "phonegap-plugin-push" for ios
"framework" tag with type "podspec" is deprecated and will be removed. Please use the "podspec" tag.
Failed to install 'phonegap-plugin-push': undefined
CordovaError: Promise rejected with non-error: '/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/universal-darwin19/rbconfig.rb:229: warning: Insecure world writable dir /Users/...../node_modules/.bin in PATH, mode 040777\n' +
  "/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:439:in `help!': \u001b[31m[!] You cannot run CocoaPods as root.\u001b[39m (CLAide::Help)\n" +
  '\n' +
  '\u001b[4mUsage:\u001b[24m\n' +
  '\n' +
  '    $ \u001b[32mpod\u001b[39m \u001b[32mCOMMAND\u001b[39m\n' +
  '\n' +
  '      CocoaPods, the Cocoa library package manager.\n' +
  '\n' +
  '\u001b[4mCommands:\u001b[24m\n' +
  '\n' +
  '    \u001b[32m+ cache\u001b[39m      Manipulate the CocoaPods cache\n' +
  '    \u001b[32m+ env\u001b[39m        Display pod environment\n' +
  '    \u001b[32m+ init\u001b[39m       Generate a Podfile for the current directory\n' +
  '    \u001b[32m+ install\u001b[39m    Install project dependencies according to versions from a\n' +
  '                 Podfile.lock\n' +
  '    \u001b[32m+ ipc\u001b[39m        Inter-process communication\n' +
  '    \u001b[32m+ lib\u001b[39m        Develop pods\n' +
  '    \u001b[32m+ list\u001b[39m       List pods\n' +
  '    \u001b[32m+ outdated\u001b[39m   Show outdated project dependencies\n' +
  '    \u001b[32m+ repo\u001b[39m       Manage spec-repositories\n' +
  '    \u001b[32m+ setup\u001b[39m      Setup the CocoaPods environment\n' +
  '    \u001b[32m+ spec\u001b[39m       Manage pod specs\n' +
  '    \u001b[32m+ update\u001b[39m     Update outdated project dependencies and create new Podfile.lock\n' +
  '\n' +
  '\u001b[4mOptions:\u001b[24m\n' +
  '\n' +
  '    \u001b[34m--silent\u001b[39m     Show nothing\n' +
  '    \u001b[34m--version\u001b[39m    Show the version of the tool\n' +
  '    \u001b[34m--verbose\u001b[39m    Show more debugging information\n' +
  '    \u001b[34m--no-ansi\u001b[39m    Show output without ANSI codes\n' +
  '    \u001b[34m--help\u001b[39m       Show help banner of specified command\n' +
  "\tfrom /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/command.rb:47:in `run'\n" +
  "\tfrom /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/bin/pod:55:in `<top (required)>'\n" +
  "\tfrom /usr/local/bin/pod:23:in `load'\n" +
  "\tfrom /usr/local/bin/pod:23:in `<main>'\n"
    at /Users/.../node_modules/cordova/bin/cordova:29:15
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
[ERROR] An error occurred while running subprocess cordova.

        cordova plugin add phonegap-plugin-push exited with exit code 1.

        Re-running this command with the --verbose flag may provide more information.

已经尝试过更新吊舱了。我的pod版本是1.8.4

我做了pod更新,CocoaPods更新,但都没有解决问题。

有人能给我个提示吗?

代码语言:javascript
复制
Ionic:

   Ionic CLI          : 5.4.13 (/usr/local/lib/node_modules/ionic)
   Ionic Framework    : ionic-angular 3.9.2
   @ionic/app-scripts : 3.2.4

Cordova:

   Cordova CLI       : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms : ios 5.1.1
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.3, (and 20 other plugins)

Utility:

   cordova-res : 0.8.1
   native-run  : 0.3.0
EN

回答 1

Stack Overflow用户

发布于 2020-01-15 22:27:17

目前,决定降级到cordova-ios版本4.5.5,以保持与插件的兼容性。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59583759

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档