Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

npm install global vs local

local packages are installed in the directory where you run npm install <package-name> , and they are put in the node_modules folder under this directory. global packages are all put in a single place in your system (exactly where depends on your setup), regardless of where you run npm install -g <package-name>
Source by nodejs.dev #
 
PREVIOUS NEXT
Tagged: #npm #install #global #local
ADD COMMENT
Topic
Name
6+8 =