cordova - Error in ionic 2 build or run -


i trying run below command gives me typescript module error below:

ionic cordova run android error: cannot find module 'typescript' 

please me rid of this!

below inoic info output:

ionic info 

cli packages: (/usr/local/lib/node_modules)

@ionic/cli-utils  : 1.9.2 ionic (ionic cli) : 3.9.2 

global packages:

cordova cli : 7.0.1  gulp cli    : cli version 1.2.2 local version 3.9.1 

local packages:

@ionic/app-scripts : 2.1.4 cordova platforms  : android 6.2.3 ios 4.4.0 ionic framework    : ionic-angular 3.6.0 

system:

android sdk tools : 25.2.5 node              : v8.4.0 npm               : 5.2.0  os                : linux 3.13 

below package.json:

 {   "name": "ionic-hello-world",   "version": "0.0.0",   "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": "4.1.3",     "@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/camera": "^4.2.1",     "@ionic-native/core": "3.12.1",     "@ionic-native/geolocation": "^4.2.1",     "@ionic-native/keyboard": "^4.1.0",     "@ionic-native/splash-screen": "3.12.1",     "@ionic-native/sqlite": "^4.2.1",     "@ionic-native/status-bar": "3.12.1",     "@ionic/storage": "2.0.1",     "ionic-angular": "3.6.0",     "ionicons": "3.0.0",     "rxjs": "5.4.0",     "sw-toolbox": "3.6.0",     "typescript": "^2.5.2",     "zone.js": "0.8.12"   },   "devdependencies": {     "@ionic/app-scripts": "^2.1.4"   },   "cordovaplugins": [     "cordova-plugin-whitelist",     "cordova-plugin-console",     "cordova-plugin-statusbar",     "cordova-plugin-device",     "ionic-plugin-keyboard",     "cordova-plugin-splashscreen"   ],   "cordovaplatforms": [],   "description": "checkcookieapp: ionic project" } 

this package.json file using running npm install

this issue got solved installing typing-script \n "

npm install -g tsd

and creating new ionic 2 project , running below -

ionic cordova run android

works me on same node 8.4.0 version.


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -