2017-12-05 9 views
1

ich installierte ionic3 so wollte ich vollständig deinstalliert und neu installiert NodeJS es, dann ionische installiert,cordova Installation nicht auf Windows

C:\Windows\system32>ionic -v 
3.19.0 

C:\Windows\system32>npm -v 
5.5.1 

C:\Windows\system32>node -v 
v8.9.1 

jetzt ich cordova zu installieren versuchen, und es ist die Installation nicht.

C:\Windows\system32>npm install -g cordova 
npm ERR! Unexpected end of JSON input while parsing near '....1.4","ripemd160":" 
^2' 

npm ERR! A complete log of this run can be found in: 
npm ERR!  C:\Users\DELL 5521\AppData\Roaming\npm-cache\_logs\2017-12-05T20_46 
_55_094Z-debug.log 

hier sind Inhalt der Protokolldatei

// 2017-12-05T20_46_55_094Z-debug.log https://pastebin.com/7mVNRkC8

+0

Ionic und Cordova sollte mit einem einzigen Befehl 'npm install -g ionic cordova' installiert werden. Möglicherweise möchten Sie Ionic deinstallieren und diesen Befehl verwenden, um beide zu installieren. Siehe die vollständigen Details auf der Ionic Installation Guide: https://ionicframework.com/docs/intro/installation/ – sherb

Antwort

1

ich ionischer deinstallieren musste und cordova und installieren Sie sie wieder, hier sind Schritte, die ich tat, es zu beheben

$ npm uninstall -g cordova 
$ npm uninstall -g ionic 
$ npm cache clean -f 
$ npm install -g cordova ionic 
0

try folgenden Schritte Ionic CLI und Cordova Ionic Projekte zu erstellen, Sie müssen die neueste Version von CLI und Cordova installieren. Bevor Sie das tun, benötigen Sie eine aktuelle Version von Node.js. Node Download

nächstes müssen Sie cmd öffnen und führen $ npm install -g ionic cordova mehr Details erfahren https://ionicframework.com/docs/intro/installation/

+0

Sie können am Anfang meiner Frage sehen, ich habe bereits 3.19.0 von IONIC, npm und Knoten sind auch auf spät Versionen. Als nächstes versuche ich cordova wie in Frage gezeigt zu installieren. Was ist das eigentliche Problem? –