docs: it's safer to append rather than prepend to $PATH

This commit is contained in:
curben 2018-11-07 17:24:42 +10:30
parent dec7a55ba5
commit a3fd0ce5ef
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ $ sudo pacman -S npm
```bash
$ cd <folder>
$ npm install
$ echo 'PATH="./node_modules/.bin:$PATH"' >> ~/.profile
$ echo 'PATH="$PATH:./node_modules/.bin"' >> ~/.profile
```
5. Generate static files to check for any error. You should always do this before pushing/merging commits to the `master` branch.
```bash

View File

@ -38,7 +38,7 @@ Practically, you can use Snyk to patch it, *if* possible like this [hexo-all-min
```bash
$ npm install snyk
# Add 'node_modules/.bin' to $PATH, if you haven't done so. Check ~/.profile before running the following command.
$ echo 'PATH="./node_modules/.bin:$PATH"' >> ~/.profile
$ echo 'PATH="$PATH:./node_modules/.bin"' >> ~/.profile
```
5. `cd` into your repo folder.
6. Login to Snyk, `$ snyk auth`. Snyk website will pop-up.