我有多個錯誤時升運行命令NPM上窗戶安裝-g角-CLI 上午10 64位時。看看我的日誌多個錯誤NPM運行安裝-g角-CLI命令
npm ERR! git clone --template=C:\Users\ben\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror [email protected]:webpack/compression-webpack-plugin.git C:\Users\ben\AppData\Roaming\npm-cache\_git-remotes\git-github-com-webpack-compression-webpack-plugin-git-7e55907cd54a2e91b96d25a660acc6a2a6453f54-e286d0b5: undefined
npm ERR! git clone --template=C:\Users\ben\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror [email protected]:webpack/compression-webpack-plugin.git C:\Users\ben\AppData\Roaming\npm-cache\_git-remotes\git-github-com-webpack-compression-webpack-plugin-git-7e55907cd54a2e91b96d25a660acc6a2a6453f54-e286d0b5: undefined
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "angular-cli"
npm ERR! node v6.2.0
npm ERR! npm v3.8.9
npm ERR! code ENOGIT
npm ERR! not found: git
npm ERR!
npm ERR! Failed using git.
npm ERR! This is most likely not a problem with npm itself.
npm ERR! Please check if you have git installed and in your PATH.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\ben\npm-debug.log
你的日誌說'請檢查你是否安裝了git並且在你的PATH中。你呢? – blindstuff
Git已安裝,並在我的路徑,仍然無法正常工作。從angular-cli網站git不是先決條件,我認爲git的compression-webpack-plugin.git存在一個錯誤。 – Bento
這是您第一次安裝angular-cli還是安裝了早期版本? – Brocco