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

Moved to nvm to handle node installation. #984

Closed

Conversation

hkirk
Copy link
Contributor

@hkirk hkirk commented Oct 14, 2024

Installs Node 22 through nvm instead of manually fetching packages. This fixes nvm for Linux for #962

https://deb.nodesource.com/node_%s.x nodistro main" "$NODE_MAJOR" | \
sudo tee /etc/apt/sources.list.d/nodesource.list
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
Copy link

Choose a reason for hiding this comment

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

Declare and assign separately to avoid masking return values.

sudo tee /etc/apt/sources.list.d/nodesource.list
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
Copy link

Choose a reason for hiding this comment

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

Can't follow non-constant source. Use a directive to specify location.

@@ -113,17 +113,23 @@ option with care.
To manage collaboration by multiple developers on the software,
a development workflow is in place. Each developer should follow these steps:

<!--
TODO Insert before Use fork,branch ... when githooks works
Copy link

Choose a reason for hiding this comment

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

TODO found

Copy link

codeclimate bot commented Oct 14, 2024

Code Climate has analyzed commit 679fb79 and detected 3 issues on this pull request.

Here's the issue category breakdown:

Category Count
Bug Risk 3

View more on Code Climate.

@hkirk hkirk closed this Oct 14, 2024
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.

1 participant