Skip to content

Commit

Permalink
change apt-get to apt in debian installation (#1013)
Browse files Browse the repository at this point in the history
  • Loading branch information
clanghout authored and Daniel15 committed Oct 19, 2019
1 parent 4c9acf1 commit 78a3f1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lang/en/docs/_installations/debian.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ On Ubuntu 16.04 or below and Debian Stable, you will also need to configure [the
Then you can simply:

```sh
sudo apt-get update && sudo apt-get install yarn
sudo apt update && sudo apt install yarn
```

**Note**: Ubuntu 17.04 comes with `cmdtest` installed by default. If you're getting errors from installing `yarn`, you may want to run `sudo apt remove cmdtest` first. Refer to [this](https://github.com/yarnpkg/yarn/issues/2821) for more information.

If using `nvm` you can avoid the `node` installation by doing:

```sh
sudo apt-get update && sudo apt-get install --no-install-recommends yarn
sudo apt update && sudo apt install --no-install-recommends yarn
```

**Note**: Due to the use of `nodejs` instead of `node` name in some distros, `yarn` might complain about `node` not being installed. A workaround for this is to add an alias in your `.bashrc` file, like so: `alias node=nodejs`. This will point `yarn` to whatever version of `node` you decide to use.
Expand Down
2 changes: 1 addition & 1 deletion lang/en/docs/_installations/nightly.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ An Ubuntu/Debian repository of the nightly builds is also available. To enable i
```sh
sudo apt-key adv --fetch-keys http://dl.yarnpkg.com/debian/pubkey.gpg
echo "deb http://nightly.yarnpkg.com/debian/ nightly main" | sudo tee /etc/apt/sources.list.d/yarn-nightly.list
sudo apt-get update && sudo apt-get install yarn
sudo apt update && sudo apt install yarn
```

On Windows, the [Windows installer](https://nightly.yarnpkg.com/latest.msi) can be used.

0 comments on commit 78a3f1c

Please sign in to comment.