pnpm报错This version of pnpm requires at least Node.js v16.14The current version of Node.js is v16.8.0

03-08 1595阅读 0评论
ning@MacdeMacBook ~ % pnpm --version
ERROR: This version of pnpm requires at least Node.js v16.14
The current version of Node.js is v16.8.0
Visit https://r.pnpm.io/comp to see the list of past pnpm versions with respective Node.js version support.

第一步,先查看本机node.js版本:

pnpm报错This version of pnpm requires at least Node.js v16.14The current version of Node.js is v16.8.0,pnpm报错This version of pnpm requires at least Node.js v16.14The current version of Node.js is v16.8.0,词库加载错误:未能找到文件“C:\Users\Administrator\Desktop\火车头9.8破解版\Configuration\Dict_Stopwords.txt”。,使用,安装,管理,第1张
(图片来源网络,侵删)

node -v

第二步,清除node.js的cache:

sudo npm cache clean -f

第三步,安装 n 工具,这是个专门用来管理node.js版本的工具。

sudo npm install -g n

第四步,安装指定版本的node.js

pnpm报错This version of pnpm requires at least Node.js v16.14The current version of Node.js is v16.8.0,pnpm报错This version of pnpm requires at least Node.js v16.14The current version of Node.js is v16.8.0,词库加载错误:未能找到文件“C:\Users\Administrator\Desktop\火车头9.8破解版\Configuration\Dict_Stopwords.txt”。,使用,安装,管理,第2张
(图片来源网络,侵删)

sudo n 16.14.0安装node 16.14.0版本(n后面跟你想要安装的node版本号就可以啦)

sudo n latest安装node最新版本

sudo n stable 安装node稳定版本

sudo n rm xx.xx.xx 删除指定node版本

第五步,再次查看本机的node.js版本:

node -v

pnpm报错This version of pnpm requires at least Node.js v16.14The current version of Node.js is v16.8.0,pnpm报错This version of pnpm requires at least Node.js v16.14The current version of Node.js is v16.8.0,词库加载错误:未能找到文件“C:\Users\Administrator\Desktop\火车头9.8破解版\Configuration\Dict_Stopwords.txt”。,使用,安装,管理,第3张
(图片来源网络,侵删)

第六步,更新npm到最新版,不影响使用可以不更新,非必需

sudo npm install npm@latest -g

pnpm使用:项目初衷 | pnpm

参考:macOS 升级node到指定版本 | CHEGVA


免责声明
本网站所收集的部分公开资料来源于AI生成和互联网,转载的目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。
文章版权声明:除非注明,否则均为主机测评原创文章,转载或复制请以超链接形式并注明出处。

发表评论

快捷回复: 表情:
评论列表 (暂无评论,1595人围观)

还没有评论,来说两句吧...

目录[+]