cordova 安裝插件失敗
標簽:
JavaScript
问题如下:
G:\Work\AMC>cordova plugin add cordova-plugin-app-version (node:9884) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): CordovaError: Failed to fetch plugin cordova-plugi n-app-version 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 4294963238 Error output:npm WARN myapp@1.1.1 No repository field. npm WARN myapp@1.1.1 No license field. npm ERR! path G:\Work\AMC\node_modules\_glob@7.1.3@glob\node_modules\fs.realpath npm ERR! code ENOENT npm ERR! errno -4058npm ERR! syscall rename npm ERR! enoent ENOENT: no such file or directory, rename 'G:\Work\AMC\node_modules\_glob@7.1.3@glob\node_modules\fs.realpath' -> 'G:\Work\AMC\ node_modules\_glob@7.1.3@glob\node_modules\fs.realpath'npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent npm ERR! A complete log of this run can be found in:npm ERR! D:\Nodejs\node_cache\_logs\2018-09-21T14_58_53_089Z-debug.log (node:9884) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled w ill terminate the Node.js process with a non-zero exit code.
重点信息如下:
UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): CordovaError: Failed to fetch plugin cordova-plugin-app-version via registry. Probably this is either a connection problem, or plugin spec is incorrect. Check your connection and plugin name/version/URL.
作者:邪人君子
链接:https://www.jianshu.com/p/2ae8b7d97c1c
點擊查看更多內(nèi)容
為 TA 點贊
評論
評論
共同學習,寫下你的評論
評論加載中...
作者其他優(yōu)質(zhì)文章
正在加載中
感謝您的支持,我會繼續(xù)努力的~
掃碼打賞,你說多少就多少
贊賞金額會直接到老師賬戶
支付方式
打開微信掃一掃,即可進行掃碼打賞哦