Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added troubleshooting to upgrade node docs #529

Merged
merged 1 commit into from
Sep 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions docs/backend/guides/how-to/upgrade-node.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,19 @@ Things to modify:
instructions [An example slack
message](https://ustcdp3.slack.com/archives/CP6PTUPQF/p1624996730029000)
11. Merge the PR in transcom/mymove

# Troubleshooting

If you're getting a wrong version of node error try the following steps:
1. run `brew install nvm`
2. run `mkdir ~/.nvm` to create nvm working directory
3. add nvm to shell profile by running:
> ```
> export NVM_DIR="$HOME/.nvm"
> [ -s "$HOMEBREW_PREFIX/opt/nvm/nvm.sh" ] && \. "$HOMEBREW_PREFIX/opt/nvm/nvm.sh" # This loads nvm
> [ -s "$HOMEBREW_PREFIX/opt/nvm/etc/bash_completion.d/nvm" ] && \. "$HOMEBREW_PREFIX/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion
> ```
4. run `nvm install 18.20.4` with the version of nodejs you want to install
5. run `nvm use 18.20.4` with the version of nodejs you want to use

If you're still encountering errors you can use nvm to uninstall the incorrect versions `nvm uninstall 18.20.2`
Loading