Setup node_modules bin on global environtment path

Posted on May 10, 2022 7:13 PM by Dimas Lanjaka
NodeJS Bash CMD Uncategorized

Setup Windows

Environtment Path Windows

Setup Linux

sudo gedit ~/.bashrc

add following codes to end of file

if [ -d "./bin" ] ; then
    export PATH="$PATH:./bin"
fi
if [ -d "./node_modules/.bin" ] ; then
    export PATH="$PATH:./node_modules/.bin"
fi

cover

Search