小编Lub*_*jek的帖子

没有为命令yarn安装预设版本

我的 asdf 有问题。\n我已经安装了最新的 Nodejs。

\n
asdf install nodejs latest\n... \nasdf local nodejs latest / asdf global nodejs latest \n
Run Code Online (Sandbox Code Playgroud)\n

但如果我尝试

\n
yarn                                                        \xef\x80\x97 \nNo preset version installed for command yarn\nPlease install a version by running one of the following:\n\nasdf install nodejs 18.0.0\n\nor add one of the following versions in your config file at /Users/../project-name/.tool-versions\nnodejs 14.17.0\nnodejs 19.0.1\n
Run Code Online (Sandbox Code Playgroud)\n

但我的项目结构中的 .tool-version 已经包含它:

\n
nodejs 18.0.0\nnodejs 19.0.1\n
Run Code Online (Sandbox Code Playgroud)\n

(对于我的项目,我需要nodejs >= 18)\n我正在使用苹果M1芯片。

\n

zsh asdf node.js yarn-lock.json apple-m1

16
推荐指数
1
解决办法
9012
查看次数

标签 统计

apple-m1 ×1

asdf ×1

node.js ×1

yarn-lock.json ×1

zsh ×1