pnpm报错This version of pnpm requires at least Node.js v16.14The current version of Node.js is v16.8.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版本:
node -v
第二步,清除node.js的cache:
sudo npm cache clean -f
第三步,安装 n 工具,这是个专门用来管理node.js版本的工具。
sudo npm install -g n
第四步,安装指定版本的node.js
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
第六步,更新npm到最新版,不影响使用可以不更新,非必需
sudo npm install npm@latest -g
pnpm使用:项目初衷 | pnpm
AtomGit 是由开放原子开源基金会联合 CSDN 等生态伙伴共同推出的新一代开源与人工智能协作平台。平台坚持“开放、中立、公益”的理念,把代码托管、模型共享、数据集托管、智能体开发体验和算力服务整合在一起,为开发者提供从开发、训练到部署的一站式体验。
更多推荐


所有评论(0)