1
我試圖在Windows 10中用Ionic創建一個新項目,並完全安裝它的所有依賴項和模塊。使用ionic3創建一個新項目問題
當我創建使用的應用程序:
ionic start my-app
它拋出以下錯誤:
> npm install
✖ Running command - failed!
[ERROR] An error occurred while running npm install (exit code 1):
npm WARN deprecated [email protected]: Please update to the latest object-keys
npm ERR! code 1
npm ERR! Command failed: C:\Program Files\Git\cmd\git.EXE submodule update -q --init --recursive
npm ERR! C:\Program Files\Git\mingw64/libexec/git-core\git-submodule: line 7: basename: command not found
npm ERR! C:\Program Files\Git\mingw64/libexec/git-core\git-submodule: line 7: sed: command not found
npm ERR! C:\Program Files\Git\mingw64/libexec/git-core\git-submodule: line 19: .: git-sh-setup: file not found
npm ERR!
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Despair\AppData\Roaming\npm-cache\_logs\2017-06-27T13_56_55_297Z-debug.log
我真的不能弄清楚發生了什麼事情。有什麼建議麼?
UPDATE:
Here is the commands i ran for info and results I got:
>ionic info
global packages:
@ionic/cli-utils : 1.4.0
Ionic CLI : 3.4.0
local packages:
@ionic/app-scripts : not installed
@ionic/cli-plugin-ionic-angular : 1.3.1
Ionic Framework : not installed
System:
Node : v8.1.2
OS : Windows 10
Xcode : not installed
ios-deploy : not installed
ios-sim : not installed
npm : 5.0.3
npm -v:
5.0.3
份額結果'NPM -v' – mumair
@mumair我已經更新了我的信息的問題你問。 – Elisha512
這是很奇怪的行爲。你可以從這裏https://github.com/ionic-team/ionic-angular-cordova-seed下載和運行'npm install'在種子項目中,這樣就可以確認問題出在離子生成項目生成中還是在npm – mumair