android - 安装 react-native-vcard 包时出错
问题描述
我正在尝试为我的 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
解决方案
而不是这个命令
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';
推荐阅读
- python - 文本输出顺序错误
- django - 如何在推送之前在 django 中添加静态文件
- java - 有人可以在这里更正我的代码吗?另外,有人能告诉我在 Java 中定义函数的正确方法吗?
- bash - 如何将结果从 Shell 脚本传递到 Automator 中的下一步
- java - 布尔表达式比较列表的问题
.get() 函数与数组 - java - Java while循环在“break”语句后没有中断
- r - 在 r 行中取消列出列表
- angular - 角度单元测试函数。管道不是函数
- android-studio - 如何修复错误'int java.util.List.size()'
- python - OpenCV:从 RGB 图像中提取颜色通道