npm和nodejs对应关系
查看地址 https://nodejs.org/zh-cn/download/releases
使用npm命令时报错:
npm WARN cli npm v9.6.4 does not support Node.js v16.8.0. This version of npm supports the following node versions: `^14.17.0 || ^16.13.0 || >=18.0.0`. You can find the latest version at https://nodejs.org/.
npm install -g npm@8.19.4
npm -v
8.19.4