安装react-native-vcard包时出错

问题描述 投票:0回答:1

我正在尝试为我的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 vcard
1个回答
0
投票

而不是这个命令

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

"vcards-js": "git+https://[email protected]/idxbroker/vCards-js#react-native"添加到package.json依赖项

并运行npm install

并使用此插件作为import vCard from 'vcards-js';

© www.soinside.com 2019 - 2024. All rights reserved.