Created
October 20, 2022 07:51
-
-
Save bsmth/0819abdbc37f5c7137dc7eb56cf84c5e to your computer and use it in GitHub Desktop.
Installing node 19 with global modules from 18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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