Use the following command.
npm install --save --save-exact @
E.g ( npm install --save --save-exact browserify@12.0.0
)
Notes:
- If the dependence is a development dependence use
--save-dev
instead of--save
. - This command should automatically update the “shrinkwrap.json” file which is a lock file for the defined dependencies in the application, however, if it doesn’t happen then remove the “node_modules” directory and the `shrinkwrap.json` file and after that run “npm install” and “npm shrinkwrap” to re-generated this file.
For further information see the NodeJS install documentation and npm-shrinkwrap documentation