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

Create a .nvmrc file so "nvm use" will pick an appropriate node version #2835

Merged
merged 4 commits into from
Nov 30, 2023

Conversation

dweitzman-codaio
Copy link
Contributor

Personally this is what I do. Might be useful to other people as well?...

Copy link
Collaborator

@jonathan-codaio jonathan-codaio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mind also updating README.md with the suggested way to install nvm and the command to use what's specified here?

@dweitzman-codaio
Copy link
Contributor Author

I added a note in CONTRIBUTING.md and updated setup-env.sh to call nvm if possible. What do you think?

if command -v nvm &> /dev/null
then
# Gets version from .nvmrc
nvm use
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will instruct people to run nvm install v18 if they haven't already, so I figured it's probably fine not to mention that directly in the CONTRIBUTING instructions

Copy link
Collaborator

@jonathan-codaio jonathan-codaio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great

@dweitzman-codaio dweitzman-codaio merged commit 22987cf into main Nov 30, 2023
1 check passed
@dweitzman-codaio dweitzman-codaio deleted the dw-nvmrc branch November 30, 2023 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants