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

Hiroki

I've been using Laravel and trying to use angular-ui-sortable and angular-utils-pagination.

I installed them with npm, but can't get package.json updated for angular-utils-pagination.

The file now looks like...

 {
  "private": true,
  "devDependencies": {
   "gulp": "^3.8.8"
  },
  "dependencies": {
    "angular-ui-sortable": "^0.14.0",
    "bootstrap-sass": "^3.0.0",
    "laravel-elixir": "^4.0.0"
  }
}

The point is that angular-ui-sortable is there but angular-utils-pagination is not. Both files are under node_module folder. As far as I understand, those libraries have to be under dependencies in package.json for them to be available.

Any advice will be appreciated.

Ann Nguyen

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!

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

npm install package in absolute path (Locally and package.json)

From Dev

npm install package from github repo subfolder

From Dev

NPM: To install a package along with its own devDeps

From Dev

angular 2 + npm install package not working

From Dev

NPM install package without nested node_modules

From Java

Difference between ng add <package name> vs npm install <package name> in angular 6

From Dev

How to run a post-install script after individual execution of "npm install <package>"

From Dev

Muzei database doesn't update when I update external JSON

From Dev

npm install doesn't save dependency to package.json

From Dev

Bower: Install package that doesn't have bower.json file

From Dev

Grunt doesn't find package bower.json

From Dev

json response in ajax is correct, but content doesn't update?

From Java

JFXListView doesn't update

From Dev

Extension Doesn't Update

From Dev

$PATH doesn't update

From Dev

Code doesn't update

From Dev

Select doesn't update

From Dev

Data doesn't update

From Dev

getNumColumns() doesn't update?

From Dev

Update is telling me my package system is broken - the instruction to fix it doesn't work - what to do?

From Dev

Apt doesn’t seem to update package sources when attempting to install Mono on Ubuntu 14.04

From Java

`npm build` doesn't run the script named "build" in package.json

From Dev

reloadTimeline() doesn't update complication

From Dev

Table __MigrationHistory doesn't update

From Dev

GitHub repo doesn't update

From Dev

ListView doesn't update itself

From Dev

SharpSVN doesn't update files

From Dev

Angularjs view doesn't update

From Dev

Android updateAppWidget doesn't update

Related Related

HotTag

Archive