Install a package as if it was the only package.
Does installing a new dependency take a lot of time when you have a lot of node_modules
already installed?
It installs the dependency it in a temporary location then it moves* it to your project, along with .bin
s, and updated your package.json
.
npm install -g 1nstall
one jquery
# or
one npm --saveDev jquery
-
It's only beneficial when the installing package is actually smaller (dependencies included) than your project. Which usually is the case.
-
It only updates
package.json
notpackage-lock.json
file.