npm WARN notsup Unsupported engine for cnpm@9.2.0: wanted: {"node":">= 14.18.0"} (current: {"node":"14.6.0","npm":"6.14.6"})
时间: 2023-07-05 21:22:50 浏览: 96
这是一个 npm 的警告,表示你当前使用的 Node.js 版本太低,不满足 cnpm 包的最低要求。cnpm 要求 Node.js 的版本号必须大于等于 14.18.0。你当前使用的 Node.js 版本是 14.6.0,低于要求。因此,你需要升级 Node.js 版本,才能使用 cnpm 包。你可以通过升级 Node.js 来解决这个问题。你可以使用 nvm 或者直接下载最新版本的 Node.js 进行安装。
相关问题
npm WARN deprecated vm2@3.9.19: The library contains critical security issues and should not be used for production! The maintenance of the project has been discontinued. Consider migr ating your code to isolated-vm. C:\Users\lizhiqing\AppData\Roaming\npm\cnpm -> C:\Users\lizhiqing\AppData\Roaming\npm\node_modules\cnpm\bin\cnpm npm WARN notsup Unsupported engine for cnpm@9.2.0: wanted: {"node":">= 14.18.0"} (current: {"node":"14.17.3","npm":"6.14.13"}) npm WARN notsup Not compatible with your version of node/npm: cnpm@9.2.0 npm WARN notsup Unsupported engine for npminstall@7.9.0: wanted: {"node":">=14.18.0"} (current: {"node":"14.17.3","npm":"6.14.13"}) npm WARN notsup Not compatible with your version of node/npm: npminstall@7.9.0 npm WARN notsup Unsupported engine for urllib@3.17.1: wanted: {"node":">= 14.19.3"} (current: {"node":"14.17.3","npm":"6.14.13"}) npm WARN notsup Not compatible with your version of node/npm: urllib@3.17.1
这些警告是由 npm 给出的,它们表示你的项目中使用了一些已经停止维护的库或者有安全问题的库。警告信息中建议你迁移到其他替代库,例如 isolated-vm。同时,还有一些库指定了不兼容的 Node.js 版本范围。
如果你在生产环境中使用这些库,你应该考虑替换它们以避免潜在的安全风险。你可以尝试找到替代库,并修改你的代码以适应新的库。此外,你还可以更新你的 Node.js 版本以满足这些库的要求。
如果你对具体的库有更多疑问或需要进一步帮助,请提供更多相关信息,我会尽力帮助你解决问题。
pm WARN notsup Unsupported engine for cnpm@9.2.0: wanted: {"node":">= 14.18.0"} (current: {"node":"14.15.1","npm":"6.14.8"}
警告中提到了cnpm@9.2.0的不支持的引擎版本,要求的是{"node":">= 14.18.0"},但当前的版本为{"node":"14.15.1","npm":"6.14.8"}。这意味着你的cnpm版本要求的Node.js版本高于你当前的Node.js版本。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [安装webpack出现警告:npm WARN notsup Unsupported engine for watchpack-chokidar2@2.0.0](https://blog.csdn.net/FantasyWeirdo/article/details/107079920)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [防止 npm 安装不支持的 Node.js 版本](https://blog.csdn.net/weixin_46267040/article/details/125369888)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文