Issue
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.
Solution
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!
Answered By - Ann Nguyen
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.