科尔多瓦安卓Referrer

3
我希望您能为我做一些翻译,这涉及到IT技术方面的内容,具体是有关Cordova和Android推荐人的问题。通过使用推荐人,我们可以像下面这样从Google Play获取值: https://play.google.com/store/apps/details?id=com.maingames.android.CGID&referral=question 这样我们就可以得到一个推荐人,即referral=question。
我使用了这个插件来使用推荐人功能: https://www.npmjs.com/package/cordova-android-referrer 但不幸的是,当我尝试使用时,出现了一些问题。
cordova plugins add https://github.com/8zrealestate/android-referrer-plugin

它会显示为这样:

错误:无法通过注册表获取插件LINK。这可能是连接问题或插件规范不正确的原因,检查连接和插件名称/版本/URL。错误:cmd:命令执行失败,退出代码4294963228,错误输出:

addRemoteGit错误:命令执行失败:git -c core.longpaths=true config

-get remote.origin.url npm WARN addRemoteGit npm WARN addRemoteGit at ChildProcess.exithandler(child_process.js:206:12)npm WARN addRemoteGit at emitTwo(events.js:106:13)npm WARN addRemoteGit at ChildProcess.emit(events.js:191:7)npm WARN addRemoteGit at maybeClose(internal / child_process.js:877:16)npm WARN addRemoteGit at Socket。(internal/child_process.js:334:11)npm WARN addRemoteGit at emitOne(events.js:96:13)npm WARN addRemoteGit at Socket.emit(events.js:188:7)npm WARN addRemoteGit at Pipe._handle.close [as _onclose](net.js:498:12)npm WARN addRemoteGit git + htttps://github.com/8zrealestate/android-referrer-plug in.git重置远程C:\Users\ideapad\AppData\Roaming\npm-cache_git-remotes\git-htttps-github-com-8zrealestate-android-referrer-plugin-git-e8aa7510,因为错误:{Error:命令执行失败:git -c core.longpaths=true config --get remote .origin.url npm WARN addRemoteGit npm WARN addRemoteGit at ChildProcess.exithandler(child_process.js:206:12 )npm WARN addRemoteGit at emitTwo(events.js:106:13)npm WARN addRemoteGit at ChildProcess.emit(events.js:191:7)npm WARN addRemoteGit at maybeClose(internal/child_process.js:877:16)npm WARN addRemoteGit at Socket。 (internal/child_process.js:334:11)npm WARN addRemoteGit at emitOne(events.js:96:13)npm WARN addRemoteGit at Socket.emit(events.js:188:7)npm WARN addRemoteGit at Pipe._handle.close [as _onclose](net.js:498:12)npm WARN addRemoteGit killed:false,npm WARN addRemoteGit code:1,npm WARN addRemoteGit signal:null,npm WARN addRemoteGit cmd:'git -c core.longpaths = true config --get remote.origin.url'} npm ERR!addLocal无法安装C:\Users\ideapad\AppData\Local\Temp\npm-6372-d9aee34f\git-cache-7c50b9fc\3eb612d3fbe61a5291f69d47dc97faee4418aa14 npm ERR!Windows_NT 6.2.9200 npm ERR!argv“C:\ Program Files \ nodejs \ node.exe”“C:\ Program Files \nodejs\node_modules\npm\bin\npm-cli.js”“install”“htttps://github.com/8zrealestate/a ndroid-referrer-plugin”“--save” npm ERR!node v6.9.2 npm ERR!npm v3.10.9 npm ERR!code EISDIR npm ERR!errno -4068 npm ERR!syscall read

npm ERR!eisdir EISDIR:目录上的非法操作,read npm ERR!eisdir这很可能与npm本身无关 npm ERR!eisdir并且与npm无法在您要安装的软件包中找到package.json有关。

npm ERR!请将以下文件随附任何支持请求:npm ERR!I:\ cordova \ notif2 \ node_modules \ npm-debug.log

我读到一些关于我的git出了问题的话题,但我并不认为是这样,因为我可以克隆这个项目,但当我尝试在本地添加它时,也无法工作。

有没有其他的选择?谢谢!

1个回答

0

使用以下命令安装referrer插件,它可以正常工作

cordova plugins add cordova-android-referrer-plugin

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接