最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

无法安装离子cordova

网站源码admin21浏览0评论

无法安装离子cordova

无法安装离子cordova

运行命令ionic cordova resources时出现此错误:

cordova-res.cmd
[cordova-res] module.js:549
[cordova-res]     throw err;
[cordova-res]     ^
[cordova-res]
[cordova-res] Error: Cannot find module 'F:\Ionic\myApp\node_modules\cordova-res\bin\cordova-res'
[cordova-res]     at Function.Module._resolveFilename (module.js:547:15)
[cordova-res]     at Function.Module._load (module.js:474:25)
[cordova-res]     at Function.Module.runMain (module.js:693:10)
[cordova-res]     at startup (bootstrap_node.js:191:16)
[cordova-res]     at bootstrap_node.js:612:3
[ERROR] An error occurred while running subprocess cordova-res.
        cordova-res.cmd exited with exit code 1.
        Re-running this command with the --verbose flag may provide more information.
And while installing cordova-res i am getting this error:
npm install cordova-res -g
npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">=10.3.0"} (current: {"node":"8.11.3","npm":"6.14.5"})
npm WARN notsup Not compatible with your version of node/npm: [email protected]
npm WARN notsup Unsupported engine for @ionic/[email protected]: wanted: {"node":">=10.3.0"} (current: {"node":"8.11.3","npm":"6.14.5"})
npm WARN notsup Not compatible with your version of node/npm: @ionic/[email protected]
npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">=10"} (current: {"node":"8.11.3","npm":"6.14.5"})
npm WARN notsup Not compatible with your version of node/npm: [email protected]
npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">=10"} (current: {"node":"8.11.3","npm":"6.14.5"})
npm WARN notsup Not compatible with your version of node/npm: [email protected]
npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">= 10.0.0"} (current: {"node":"8.11.3","npm":"6.14.5"})
npm WARN notsup Not compatible with your version of node/npm: [email protected]
npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">= 10"} (current: {"node":"8.11.3","npm":"6.14.5"})
npm WARN notsup Not compatible with your version of node/npm: [email protected]
npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">=10"} (current: {"node":"8.11.3","npm":"6.14.5"})
npm WARN notsup Not compatible with your version of node/npm: [email protected]
npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">=10"} (current: {"node":"8.11.3","npm":"6.14.5"})
npm WARN notsup Not compatible with your version of node/npm: [email protected]
npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">=10"} (current: {"node":"8.11.3","npm":"6.14.5"})
npm WARN notsup Not compatible with your version of node/npm: [email protected]
npm ERR! code EEXIST
npm ERR! path C:\Users\manav\AppData\Roaming\npm\node_modules\cordova-res\bin\cordova-res
npm ERR! dest C:\Users\manav\AppData\Roaming\npm\cordova-res
npm ERR! EEXIST: file already exists, cmd shim 'C:\Users\manav\AppData\Roaming\npm\node_modules\cordova-res\bin\cordova-res' -> 'C:\Users\manav\AppData\Roaming\npm\cordova-res'
npm ERR! File exists: C:\Users\manav\AppData\Roaming\npm\cordova-res
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with --force to overwrite files recklessly.
npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\manav\AppData\Roaming\npm-cache\_logs\2020-05-09T22_09_12_401Z-debug.log

请检查并帮助我摆脱它。

谢谢!

回答如下:

如错误所言...

npm WARN notsup [email protected]不受支持的引擎:想要的:{“ node”:“> = 10.3.0”}(当前:{“ node”:“ 8.11.3”,“ npm” :“ 6.14.5”})

您需要更高版本的节点。...尝试检查当前版本并尝试更新它。

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论