"npm install [package]" doesn't update package.json

To add a angular-utils-pagination under dependencies try:

npm install angular-utils-pagination --save

It should now appear in the package.json file.

For reference, adding dependencies to package.json:

npm install <package> --save

Adding dev dependencies to package.json:

npm install <package> --save-dev

Good luck!


In order to save the package in the package.json file as a dependency you need to write

npm install <package-name> --save 

if you want to save the package as a development package only (not to be installed on production server) write the following:

npm install <package-name> --save-dev

To install dependencies from the package.json file:

npm install *installs all dependencies*
npm install --production *will only install "dependencies"*
npm install --dev *will only install "devDependencies"*