【发布时间】:2022-01-16 02:23:50
【问题描述】:
leolemus@Leos-MBP-2 ~ % npm install -g npm@latest
npm does not support Node.js v15.11.0
You should probably upgrade to a newer version of node as we
can't make any promises that npm will work with this version.
You can find the latest version at https://nodejs.org/
npm ERR! code EBADENGINE
npm ERR! engine Unsupported engine
npm ERR! engine Not compatible with your version of node/npm: npm@8.3.0
npm ERR! notsup Not compatible with your version of node/npm: npm@8.3.0
npm ERR! notsup Required: {"node":"^12.13.0 || ^14.15.0 || >=16"}
npm ERR! notsup Actual: {"npm":"8.3.0","node":"v15.11.0"}
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/leolemus/.npm/_logs/2021-12-12T02_35_45_442Z-debug-0.log
我使用 macOS 11.2.2 并且我通过自制软件安装了节点。当我执行“brew upgrade node”时,它说它是最新的。
【问题讨论】:
-
请澄清您的具体问题或提供其他详细信息以准确突出您的需求。正如目前所写的那样,很难准确地说出你在问什么。