I have completed my designing part :) But :( I am trying to use latest updated ionic version with firebase integration , use ModalController, AlertController. I tryed lot but couldn't do one small project. feeling sad

My Json File:

{
“dependencies”: {
@angular/common”: “2.0.0-rc.4”,
@angular/compiler”: “2.0.0-rc.4”,
@angular/core”: “2.0.0-rc.4”,
@angular/http”: “2.0.0-rc.4”,
@angular/platform-browser”: “2.0.0-rc.4”,
@angular/platform-browser-dynamic”: “2.0.0-rc.4”,
@angular/router”: “2.0.0-rc.4”,
“angularfire2”: “2.0.0-beta.1”,
“es6-shim”: “^0.35.0”,
“firebase”: “^3.0.5”,
“ionic-angular”: “2.0.0-beta.11”,
“ionic-native”: “1.2.4”,
“ionicons”: “3.0.0”,
“reflect-metadata”: “^0.1.3”,
“rxjs”: “5.0.0-beta.6”,
“zone.js”: “^0.6.12”
},
“devDependencies”: {
“cz-conventional-changelog”: “^1.1.6”,
“del”: “2.2.0”,
“gulp”: “3.9.1”,
“gulp-watch”: “4.3.5”,
“ionic-gulp-browserify-typescript”: “1.1.0”,
“ionic-gulp-fonts-copy”: “^1.0.0”,
“ionic-gulp-html-copy”: “^1.0.0”,
“ionic-gulp-sass-build”: “^1.0.0”,
“ionic-gulp-scripts-copy”: “^2.0.0”,
“run-sequence”: “1.1.5”
},
“name”: “dohamobapp”,
“description”: “DohaMobApp: An Ionic project”,
“cordovaPlugins”: [
“cordova-plugin-device”,
“cordova-plugin-console”,
“cordova-plugin-whitelist”,
“cordova-plugin-splashscreen”,
“cordova-plugin-statusbar”,
“ionic-plugin-keyboard”
],
“cordovaPlatforms”:
}

{
“dependencies”: {
@angular/common”: “2.0.0-rc.4”,
@angular/compiler”: “2.0.0-rc.4”,
@angular/core”: “2.0.0-rc.4”,
@angular/http”: “2.0.0-rc.4”,
@angular/platform-browser”: “2.0.0-rc.4”,
@angular/platform-browser-dynamic”: “2.0.0-rc.4”,
@angular/router”: “2.0.0-rc.4”,
“angularfire2”: “2.0.0-beta.1”,
“es6-shim”: “^0.35.0”,
“firebase”: “^3.0.5”,
“ionic-angular”: “2.0.0-beta.11”,
“ionic-native”: “1.2.4”,
“ionicons”: “3.0.0”,
“reflect-metadata”: “^0.1.3”,
“rxjs”: “5.0.0-beta.6”,
“zone.js”: “^0.6.12”
},
“devDependencies”: {
“cz-conventional-changelog”: “^1.1.6”,
“del”: “2.2.0”,
“gulp”: “3.9.1”,
“gulp-watch”: “4.3.5”,
“ionic-gulp-browserify-typescript”: “1.1.0”,
“ionic-gulp-fonts-copy”: “^1.0.0”,
“ionic-gulp-html-copy”: “^1.0.0”,
“ionic-gulp-sass-build”: “^1.0.0”,
“ionic-gulp-scripts-copy”: “^2.0.0”,
“run-sequence”: “1.1.5”
},
“name”: “dohamobapp”,
“description”: “DohaMobApp: An Ionic project”,
“cordovaPlugins”: [
“cordova-plugin-device”,
“cordova-plugin-console”,
“cordova-plugin-whitelist”,
“cordova-plugin-splashscreen”,


“cordova-plugin-statusbar”,
“ionic-plugin-keyboard”
],
“cordovaPlatforms”:
}image

You have to do an npm install. If that’s what you tried, then you need sudo npm install and then you would type your admin password

Friends don’t let friends sudo npm install.

@SigmundFroyd that is a very good point. I didn’t really think about that. I do not know what command was attempted before @vinothapplife received these error messages, so I was simply interpreting the errors.

@vinothapplife, if you got these errors after attempting npm install, then you need to fix npm permissions, first. If these errors came from ionic serve or something else, just start with npm install and see how it goes. It’s never a good idea to run npm install as super-user.

The reason is, npm install is going to try to install everything in your package.json file. In other words, npm install actually executes installation scripts for all the packages listed, and it’s entirely possible that someone could sneak in some malware. I seriously doubt this would be true of core Ionic packages or Angular dependencies. But imagine that your package.json as a typo, such as agular instead of angular. Someone with bad intentions could easily register a package called agular and do whatever they want, hoping users will make that typo and run their malware, instead. One would hope the npm police could catch such situations when a new package is registered, but there is a risk involved.