

In cases like this you'd probably want to install a specific version of the package that you know works, or that you know is "safe".

When you run the install command like this, by default it retrieves the latest version of the specified package, which in this case is v4.17.1 (at the time of this writing).īut what if we need a different version? Maybe this latest version breaks a feature that we need, or maybe it has a security vulnerability that the maintainer hasn't gotten around to fixing yet. It's main purpose, however is to help you download and install Node packages from its repository to your project.ĭownloading and installing a package is done using NPM's install command: $ npm install expressĪdded 50 packages from 37 contributors and audited 126 packages in 3.262s

NPM, or the Node Package Manager, is a powerful tool that allows you to easily manage dependencies, run scripts, and organize project metadata.
