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.
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.
Comments