Skip to content

安装插件报错 #464

@Junzibuzhengyibuqi

Description

@Junzibuzhengyibuqi

WARNING: 如果不按照这个表格,我们将无法帮助你,并将忽略你的问题。

你的运行环境

  • 插件版本:
  • 平台(Android / iOS): Android
  • Cordova version (cordova -v): 7.5.1
  • Cordova platform version (cordova platform ls):
  • Installed platforms:
    android 10.1.2
    Available platforms:
    browser
    electron
  • Ionic Version (if using Ionic)

期望效果

正常加载插件

实际效果

CordovaError: Error: Command failed with exit code 1: npm install git+https://github.com/jpush/jpush-phonegap-plugin.git --no-save
npm ERR! code 128
npm ERR! Command failed: git clone --mirror -q https://github.com/jpush/jpush-phonegap-plugin.git C:\Users\Thinkpad\AppData\Roaming\npm-cache_cacache\tmp\git-clone-c80df7a7.git --config core.longpaths=true
npm ERR! warning: templates not found in C:\Users\Thinkpad\AppData\Local\Temp\pacote-git-template-tmp\git-clone-f2bf71a9
npm ERR! fatal: unable to access 'https://github.com/jpush/jpush-phonegap-plugin.git/': Failed to connect to
github.com port 443 after 21038 ms: Couldn't connect to server
npm ERR!

npm ERR! A complete log of this run can be found in:

重现步骤

直接安装

背景

你尝试做过些什么?

Debug logs

包括 Android 或 iOS 的日志:

  • iOS: XCode logs
    • Android: $ adb logcat / Android Studio logcat

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions