Загуглил за тебя, прочитай, думаю там все по делу
npm install (in package directory, no arguments):
Install the dependencies in the local node_modules folder.
In global mode (ie, with -g or --global appended to the command), it installs the current package context (ie, the current working directory) as a global package.
By default, npm install will install all modules listed as dependencies. With the --production flag, npm will not install modules listed in devDependencies.