Plugins listed inside package.json not getting installed


#1

hi @leob, @coreelements, need your suggestions again!
I have an ionic project. package.json has the following

“dependencies”: {
“gulp”: “^3.5.6”,
“gulp-sass”: “^1.3.3”,
“gulp-concat”: “^2.2.0”,
“gulp-minify-css”: “^0.3.0”,
“gulp-rename”: “^1.2.0”
},
“devDependencies”: {
“bower”: “^1.3.3”,
“gulp-util”: “^2.2.14”,
“shelljs”: “^0.3.0”
},
“cordovaPlugins”: [
“cordova-plugin-device”,
“cordova-plugin-console”,
“cordova-plugin-whitelist”,
“cordova-plugin-splashscreen”,
“com.ionic.keyboard”
],
“cordovaPlatforms”: []

I pushed my ionic project to bitbucket.
After cloning, doing npm install installs all the dependencies listed in package.json.
but, cordova plugins are not downloaded. Any way to solve this issue?


#2

Yes, you need to issue the command:

ionic state restore --plugins

That will install the cordova plugins.


#3

works cool… thanks @leob