Open andrewculver opened 4 months ago
@andrewculver like #1606 I think the question here is what method we'd use to try to handle installing node for people.
I'm surprised that corepack enable
didn't do anything. When I've switched node versions locally it's worked just fine to do npm install -g yarn && corepack enable
.
Trying this to test:
$ npm -g uninstall yarn
removed 1 package in 131ms
Reshimming asdf nodejs...
$ ./bin/setup-scripts/check_yarn.rb
--------------------------------------------------------------------------------
Checking yarn
No preset version installed for command yarn
Please install a version by running one of the following:
asdf install nodejs 20.15.0
or add one of the following versions in your config file at /Users/jgreen/.tool-versions
nodejs 20.5.1
nodejs 20.6.1
nodejs 20.7.0
nodejs 20.8.0
nodejs 20.8.1
You don't have yarn installed. We can't proceed without it. Try `npm install -g yarn && corepack enable`.
$ npm install -g yarn && corepack enable
added 1 package in 281ms
Reshimming asdf nodejs...
$ ./bin/setup-scripts/check_yarn.rb
--------------------------------------------------------------------------------
Checking yarn
Bullet Train requires yarn 4.2.2 and `yarn -v` returns 4.2.2.
And when I try to run
yarn set version 4.2.2
I get the following:Except that running
corepack enable
doesn't fix anything!