Merge pull request #47776 from zzak/dev-deps-node-guide
Update recommended Node.js dev deps guide
This commit is contained in:
commit
00c0f5ee28
@ -122,9 +122,11 @@ $ sudo apt-get update
|
|||||||
$ sudo apt-get install sqlite3 libsqlite3-dev mysql-server libmysqlclient-dev postgresql postgresql-client postgresql-contrib libpq-dev redis-server memcached imagemagick ffmpeg mupdf mupdf-tools libxml2-dev libvips42 poppler-utils
|
$ sudo apt-get install sqlite3 libsqlite3-dev mysql-server libmysqlclient-dev postgresql postgresql-client postgresql-contrib libpq-dev redis-server memcached imagemagick ffmpeg mupdf mupdf-tools libxml2-dev libvips42 poppler-utils
|
||||||
|
|
||||||
# Install Yarn
|
# Install Yarn
|
||||||
$ curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
|
# Use this command if you do not have Node.js installed
|
||||||
$ echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
|
$ curl --fail --silent --show-error --location https://deb.nodesource.com/setup_18.x | sudo -E bash -
|
||||||
$ sudo apt-get install yarn
|
$ sudo apt-get install -y nodejs
|
||||||
|
# Once you have installed Node.js, install the yarn npm package
|
||||||
|
$ sudo npm install --global yarn
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Fedora or CentOS
|
#### Fedora or CentOS
|
||||||
@ -136,10 +138,10 @@ $ sudo dnf install sqlite-devel sqlite-libs mysql-server mysql-devel postgresql-
|
|||||||
|
|
||||||
# Install Yarn
|
# Install Yarn
|
||||||
# Use this command if you do not have Node.js installed
|
# Use this command if you do not have Node.js installed
|
||||||
$ curl --silent --location https://rpm.nodesource.com/setup_8.x | sudo bash -
|
$ curl --silent --location https://rpm.nodesource.com/setup_18.x | sudo bash -
|
||||||
# If you have Node.js installed, use this command instead
|
$ sudo dnf install -y nodejs
|
||||||
$ curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
|
# Once you have installed Node.js, install the yarn npm package
|
||||||
$ sudo dnf install yarn
|
$ sudo npm install --global yarn
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Arch Linux
|
#### Arch Linux
|
||||||
|
Loading…
Reference in New Issue
Block a user