python安装插件失败_cordova安装插件失败解决方法
cordova插件安裝由于網(wǎng)絡(luò)原因,經(jīng)常會(huì)出來插件安裝失敗的情況
于是在網(wǎng)站搜索了一個(gè)下載包來安裝,不用在線裝
Error: Failed to fetch plugin cordova-plugin-wechat@2.0.0 via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: cmd: Command failed with exit code 1 Error output:
npm ERR! shasum check failed for C:UsersADMINI~1AppDataLocalTempnpm-9128-2b5ab054registry.npmjs.orgcordova-plugin-wechat-cordova-plugin-wechat-2.0.0.tgz
npm ERR! Expected: af24ac74abf3d32ca3729fe46c4b7f981816b2e5
npm ERR! Actual: ? aa642877eda312fd352f04153c583ab334235256
npm ERR! From: ? ? https://registry.npmjs.org/cordova-plugin-wechat/-/cordova-plugin-wechat-2.0.0.tgz
npm ERR! A complete log of this run can be found in:
npm ERR! ? ? D:Program Filesnodejscache_logs2017-08-03T04_43_55_012Z-debug.log
以實(shí)際情況操作:
下載cordova微信支付插件
解壓,里面是一個(gè)package文件夾
在cordova項(xiàng)目文件夾下執(zhí)行
cordova plugin add E:wwwrootVuecordova-plugin-wechat --variable wechatappid=xxxxxx
安裝成功
還有可以直接git鏈接來安裝的
參考鏈接:
總結(jié)
以上是生活随笔為你收集整理的python安装插件失败_cordova安装插件失败解决方法的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 关于nginx你可能不知道的秘密----
- 下一篇: OpenGL反射光