Okay, the installation of node and npm worked correctly, but now here’s the error I get:
C:\myApp>ionic cordova run android
TypeError: _angular_core.InjectionToken is not a constructor
at C:\myApp\node_modules@angular\compiler\bundles\compiler.umd.js:11979:27
at C:\myApp\node_modules@angular\compiler\bundles\compiler.umd.js:7:65
at Object. (C:\myApp\node_modules@angular\compiler\bundles\compiler.umd.js:10:2)
at Module._compile (module.js:624:30)
at Object.Module._extensions…js (module.js:635:10)
at Module.load (module.js:545:32)
at tryModuleLoad (module.js:508:12)
at Function.Module._load (module.js:500:3)
at Module.require (module.js:568:17)
at require (internal/module.js:11:18)
EDIT: here is my package.json (the board won’t let me post any faster)
{
“name”: “myapp”,
“version”: “0.0.3”,
“author”: “Ionic Framework”,
“homepage”: “http://ionicframework.com/”,
“private”: true,
“scripts”: {
“clean”: “ionic-app-scripts clean”,
“build”: “ionic-app-scripts build”,
“lint”: “ionic-app-scripts lint”,
“ionic:build”: “ionic-app-scripts build”,
“ionic:serve”: “ionic-app-scripts serve”
},
“dependencies”: {
“@angular/common”: “4.1.3”,
“@angular/compiler”: “4.1.3”,
“@angular/compiler-cli”: “4.1.3”,
“@angular/core”: “^2.4.8”,
“@angular/forms”: “4.1.3”,
“@angular/http”: “4.1.3”,
“@angular/platform-browser”: “4.1.3”,
“@angular/platform-browser-dynamic”: “4.1.3”,
“@ionic-native/ad-mob”: “^3.1.1”,
“@ionic-native/admob-free”: “^4.1.0”,
“@ionic-native/core”: “^3.1.1”,
“@ionic-native/in-app-browser”: “^4.1.0”,
“@ionic-native/splash-screen”: “^3.12.1”,
“@ionic-native/status-bar”: “3.12.1”,
“@ionic/storage”: “2.0.1”,
“ajv”: “^5.2.2”,
“angular”: “^1.6.6”,
“cordova”: “^7.0.1”,
“cordova-admob-sdk”: “^0.7.0”,
“cordova-android”: “^6.2.3”,
“cordova-browser”: “^4.1.0”,
“cordova-ios”: “^4.4.0”,
“cordova-plugin-admob-free”: “^0.9.0”,
“cordova-plugin-admobpro”: “^2.29.21”,
“cordova-plugin-console”: “^1.0.5”,
“cordova-plugin-device”: “^1.1.4”,
“cordova-plugin-extension”: “^1.5.1”,
“cordova-plugin-inappbrowser”: “^1.7.1”,
“cordova-plugin-splashscreen”: “^4.0.3”,
“cordova-plugin-statusbar”: “^2.2.2”,
“cordova-plugin-whitelist”: “^1.3.1”,
“cordova-promise-polyfill”: “0.0.2”,
“ionic-angular”: “3.5.0”,
“ionic-plugin-keyboard”: “^2.2.1”,
“ionicons”: “3.0.0”,
“rxjs”: “^5.4.0”,
“sw-toolbox”: “3.6.0”,
“zone.js”: “0.8.12”
},
“devDependencies”: {
“@ionic/app-scripts”: “2.0.0”,
“ionic”: “^3.10.3”,
“typescript”: “2.3.4”
},
“description”: “An Ionic project”,
“cordova”: {
“plugins”: {
“cordova-plugin-admob-free”: {},
“cordova-plugin-console”: {},
“cordova-plugin-device”: {},
“cordova-plugin-splashscreen”: {},
“cordova-plugin-statusbar”: {},
“cordova-plugin-whitelist”: {},
“ionic-plugin-keyboard”: {},
“cordova-plugin-admobpro”: {},
“cordova-plugin-inappbrowser”: {}
},
“platforms”: [
“android”,
“browser”,
“ios”
]
}
}