Ошибка при установке пакета response-native-vcard - PullRequest
0 голосов
/ 02 сентября 2018

Я пытаюсь установить плагин «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

1 Ответ

0 голосов
/ 02 сентября 2018

Вместо этой команды

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';

...