$ npm list -g --depth 0
~/.nvm/versions/node/v16.13.2/lib
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]
NB: You need to keep corepack, yarn and npm for yarn global to work.
$ npm uninstall -g eas-cli expo-cli
$ npm list -g --depth 0
~/.nvm/versions/node/v16.13.2/lib
├── [email protected]
├── [email protected]
└── [email protected]
$ yarn global add eas-cli expo-cli
yarn global v1.22.19
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
[4/4] 🔨 Building fresh packages...
success Installed "[email protected]" with binaries:
- eas
success Installed "[email protected]" with binaries:
- expo
- expo-cli
✨ Done in 17.05s
$ yarn global list
yarn global v1.22.19
info "[email protected]" has binaries:
- eas
info "[email protected]" has binaries:
- expo
- expo-cli
✨ Done in 4.69s.
$ nvm ls
v12.22.6
v14.17.6
-> v16.13.2
default -> stable (-> v16.13.2)
node -> stable (-> v16.13.2) (default)
stable -> 16.13 (-> v16.13.2) (default)
iojs -> N/A (default)
unstable -> N/A (default)
lts/* -> lts/gallium (-> N/A)
lts/argon -> v4.9.1 (-> N/A)
lts/boron -> v6.17.1 (-> N/A)
lts/carbon -> v8.17.0 (-> N/A)
lts/dubnium -> v10.24.1 (-> N/A)
lts/erbium -> v12.22.12 (-> N/A)
lts/fermium -> v14.19.3 (-> N/A)
lts/gallium -> v16.15.1 (-> N/A)
Make sure to use these flags to ensure yarn is installed with new NVM versions:
$ nvm install lts/gallium --reinstall-packages-from=stable --latest-npm