Skip to content

Conversation

m11o
Copy link
Contributor

@m11o m11o commented Nov 3, 2023

Motivation / Background

ref: #49900

According to nodesource/distributions,

The installation scripts setup_XX.x are no longer supported and are not needed anymore.

So, This Pull Request has been created because of updating to new installation method for nodejs by using nodesource/distributions.

Detail

This Pull Request removes nodesource script (setup_XX.x) and updates nodejs installation method for Ubuntu and Fedora or CentOS in development_dependencies_install.md.

Additional information

Checklist

Before submitting the PR make sure the following are checked:

  • This Pull Request is related to one change. Changes that are unrelated should be opened in separate PRs.
  • Commit message has a detailed description of what changed and why. If this PR fixes a related issue include it in the commit message. Ex: [Fix #issue-number]
  • Tests are added or updated if you fix a bug or add a feature.
  • CHANGELOG files are updated for the changed libraries if there is a behavior change or additional feature. Minor bug fixes and documentation changes should not be included.

@rails-bot rails-bot bot added the docs label Nov 3, 2023
# ref: https://github.com/nodesource/distributions#installation-instructions
$ sudo mkdir -p /etc/apt/keyrings
$ curl --fail --silent --show-error --location https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
$ echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
Copy link
Member

@vipulnsward vipulnsward Nov 3, 2023

Choose a reason for hiding this comment

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

Lets update to 20 while we are here, current LTS - https://nodejs.org/en

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for your review.
I fixed it in d7396bfc20c3d20b5376fb2ece86c0b9694f76ca

@zzak
Copy link
Member

zzak commented Nov 3, 2023

@m11o Thanks for your patch! Could you please squash your commits? 🙇

…tall document.

Because the traditional `setup_XX.x` script is deprecated, and there is a need to migrate to the new installation method.
@m11o m11o force-pushed the feature/update-nodesource-docs branch from d7396bf to 9a1d027 Compare November 3, 2023 13:06
@m11o
Copy link
Contributor Author

m11o commented Nov 3, 2023

@zzak
Of course! Thank you for telling me that.
I fixed that in 9a1d027.

@vipulnsward vipulnsward merged commit d0f40f7 into rails:main Nov 3, 2023
@m11o m11o deleted the feature/update-nodesource-docs branch November 4, 2023 05:01
p8 pushed a commit to p8/rails that referenced this pull request Nov 4, 2023
p8 added a commit that referenced this pull request Nov 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants