VScode 使用cnpm报错
描述:cnpm出现问题重新指向cnpm使用,用npm install -g cnpm --registry=https://registry.npm.taobao.org安装了最新的cnpm@8.4.0版本,在执行使用cnpm命令时报错
ERROR: npm is known not to run on Node.js v10.15.0
You'll need to upgrade to a newer Node.js version in order to use this
version of npm. You can find the latest version at https://nodejs.org/
原因:
安装的cnpm版本高了
解决:
解决方案:
安装低版本cnpm:npm install cnpm@7.1.0 -g --registry=https://registry.npm.taobao.org