diff --git a/source/_posts/how-to-create-a-hexo-blog.md b/source/_posts/how-to-create-a-hexo-blog.md index a2af9b6..42c0d76 100644 --- a/source/_posts/how-to-create-a-hexo-blog.md +++ b/source/_posts/how-to-create-a-hexo-blog.md @@ -52,7 +52,7 @@ $ sudo pacman -S npm ```bash $ cd $ 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 diff --git a/source/_posts/secure-node-modules-snyk.md b/source/_posts/secure-node-modules-snyk.md index a2b0ec0..ba5ce85 100644 --- a/source/_posts/secure-node-modules-snyk.md +++ b/source/_posts/secure-node-modules-snyk.md @@ -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.