File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -123,8 +123,13 @@ $ sudo apt-get install sqlite3 libsqlite3-dev mysql-server libmysqlclient-dev po
123
123
124
124
# Install Yarn
125
125
# Use this command if you do not have Node.js installed
126
- $ curl --fail --silent --show-error --location https://deb.nodesource.com/setup_18.x | sudo -E bash -
126
+ # ref: https://github.com/nodesource/distributions#installation-instructions
127
+ $ sudo mkdir -p /etc/apt/keyrings
128
+ $ curl --fail --silent --show-error --location https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
129
+ $ echo " deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
130
+ $ sudo apt-get update
127
131
$ sudo apt-get install -y nodejs
132
+
128
133
# Once you have installed Node.js, install the yarn npm package
129
134
$ sudo npm install --global yarn
130
135
```
@@ -138,8 +143,10 @@ $ sudo dnf install sqlite-devel sqlite-libs mysql-server mysql-devel postgresql-
138
143
139
144
# Install Yarn
140
145
# Use this command if you do not have Node.js installed
141
- $ curl --silent --location https://rpm.nodesource.com/setup_18.x | sudo bash -
142
- $ sudo dnf install -y nodejs
146
+ # ref: https://github.com/nodesource/distributions#installation-instructions-1
147
+ $ sudo dnf install https://rpm.nodesource.com/pub_20/nodistro/repo/nodesource-release-nodistro-1.noarch.rpm -y
148
+ $ sudo dnf install nodejs -y --setopt=nodesource-nodejs.module_hotfixes=1
149
+
143
150
# Once you have installed Node.js, install the yarn npm package
144
151
$ sudo npm install --global yarn
145
152
```
You can’t perform that action at this time.
0 commit comments