【问题标题】:Error while installing react-native-vcard package安装 react-native-vcard 包时出错
【发布时间】:2018-09-02 10:24:03
【问题描述】:

我正在尝试为我的 react-native 应用程序安装“React Native vCards”插件。但是当我运行时

npm install react-native-vcards@https://github.com/idxbroker/react-native-vcards.git --save

我收到以下错误

npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t 
https://github.com/idxbroker/react-native-vcards.git
npm ERR!
npm ERR! remote: Invalid username or password.
npm ERR! fatal: Authentication failed for 
'https://github.com/idxbroker/react-native-vcards.git/'
npm ERR!
npm ERR! exited with error code: 128

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/dijish/.npm/_logs/2018-09-02T10_18_24_987Z- 
debug.log

【问题讨论】:

    标签: android react-native npm-install vcf-vcard


    【解决方案1】:

    代替这个命令

    npm install react-native-vcards@https://github.com/idxbroker/react-native-vcards.git --save

    "vcards-js": "git+https://git@github.com/idxbroker/vCards-js#react-native" 添加到 package.json 依赖项

    然后运行npm install

    将此插件用作import vCard from 'vcards-js';

    【讨论】:

      【解决方案2】:

      试试这个

      npm install react-native-vcards@https://github.com/hammadj/react-native-vcards --save
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2022-11-26
        • 2023-03-21
        • 2019-05-28
        • 2020-08-08
        相关资源
        最近更新 更多