Skip to content

Instantly share code, notes, and snippets.

@bsmth
Created October 20, 2022 07:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bsmth/0819abdbc37f5c7137dc7eb56cf84c5e to your computer and use it in GitHub Desktop.
Save bsmth/0819abdbc37f5c7137dc7eb56cf84c5e to your computer and use it in GitHub Desktop.
Installing node 19 with global modules from 18
# Using 19
node -v
v19.0.0
yarn && yarn start
zsh: command not found: yarn
# of course, everything is broken
# try reinstall 19 with all of the global modules from 18
nvm install 19 --reinstall-packages-from=18
v19.0.0 is already installed.
# OK uninstall it
nvm uninstall 19
nvm: Cannot uninstall currently-active node version, v19.0.0 (inferred from 19).
# then use 18 and reinstall 19
nvm use 18
nvm uninstall 19
nvm install 19 --reinstall-packages-from=18
# all good
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment