mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Harmonize shell commands in dev guide [ci skip]
This commit is contained in:
parent
265eeb2559
commit
852b688669
1 changed files with 7 additions and 7 deletions
|
@ -350,31 +350,31 @@ prerequisite for installing this package manager is that
|
|||
On macOS, you can run:
|
||||
|
||||
```bash
|
||||
brew install yarn
|
||||
$ brew install yarn
|
||||
```
|
||||
|
||||
On Ubuntu, you can run:
|
||||
|
||||
```bash
|
||||
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
|
||||
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
|
||||
$ curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
|
||||
$ echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
|
||||
|
||||
sudo apt-get update && sudo apt-get install yarn
|
||||
$ sudo apt-get update && sudo apt-get install yarn
|
||||
```
|
||||
|
||||
On Fedora or CentOS, just run:
|
||||
|
||||
```bash
|
||||
sudo wget https://dl.yarnpkg.com/rpm/yarn.repo -O /etc/yum.repos.d/yarn.repo
|
||||
$ sudo wget https://dl.yarnpkg.com/rpm/yarn.repo -O /etc/yum.repos.d/yarn.repo
|
||||
|
||||
sudo yum install yarn
|
||||
$ sudo yum install yarn
|
||||
```
|
||||
|
||||
Finally, after installing Yarn, you will need to run the following
|
||||
command inside of the `activestorage` directory to install the dependencies:
|
||||
|
||||
```bash
|
||||
yarn install
|
||||
$ yarn install
|
||||
```
|
||||
|
||||
Extracting previews, tested in Active Storage's test suite requires third-party
|
||||
|
|
Loading…
Reference in a new issue