2017-02-15 43 views
1

我安裝離子2和科爾多瓦,但它沒有顯示對離子的信息。所以我無法在我的Windows系統上運行我的離子項目。離子2已安裝,但它沒有顯示對離子信息

這是ionic info輸出:

E:\Sandbox\ionic\demoApp>ionic info 
****************************************************** 
Dependency warning - for the CLI to run correctly, 
it is highly recommended to install/upgrade the following: 

Please install your Cordova CLI to version >=4.2.0 `npm install -g cordova` 

****************************************************** 

Your system information: 

Cordova CLI: Not installed 
Ionic Framework Version: 2.0.1 
Ionic CLI Version: 2.2.1 
Ionic App Lib Version: 2.2.0 
Ionic App Scripts Version: 1.1.0 
ios-deploy version: Not installed 
ios-sim version: Not installed 
OS: Windows 7 
Node Version: v6.9.5 
Xcode version: Not installed 


****************************************************** 
Dependency warning - for the CLI to run correctly, 
it is highly recommended to install/upgrade the following: 

Please install your Cordova CLI to version >=4.2.0 `npm install -g cordova` 

****************************************************** 

E:\Sandbox\ionic\demoApp>cordova -v 
4.3.1 
+0

運行'npm install -g cordova'後會發生什麼? – Huiting

+0

從我看到的,安裝了Ionic 2('Ionic Framework版本:2.0.1'),但科爾多瓦不是 – Huiting

+0

@Huiting安裝後,正確安裝的科爾多瓦,它顯示的版本也.... – Karthiga

回答

0

你需要檢查,是否存在這裏:

C:\用戶\ yourPC \應用程序數據\漫遊\ NPM

,你還需要設置環境變量相同,請確保您的變量名,「路徑」對故宮和JDK兩個值。 在此過程後,您的臺式機/筆記本電腦可能需要重新啓動

+0

是啊我在這個目錄中有離子** C:\ Users \ yourPC \ AppData \ Roaming \ npm **和我的路徑有價值** npm ** – Karthiga

+0

您的路徑值是否有jdk? – devanshsadhotra

+0

沒有....但什麼是jdk ??爲什麼我在這裏需要它? – Karthiga