mirror of https://gitlab.com/curben/blog
docs: it's safer to append rather than prepend to $PATH
This commit is contained in:
parent
dec7a55ba5
commit
a3fd0ce5ef
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue