2017-01-11 70 views
-2

我試圖在test site的根目錄中的XAMPP上的開發環境中安裝gulp。無論我做什麼,我得到了下面的錯誤,我無法弄清楚什麼是錯的:在XAMPP和laravel上使用本地服務器在windows 10上安裝gulp 5.3

# npm install 
npm ERR! git clone --template=C:\Users\Username\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror [email protected]:jeroennoten/webpack-stream.git C:\Users\Username\AppData\Roaming\npm-cache\_git-remotes\git-github-com-jeroennoten-webpack-stream-git-patch-1-b24e730a: undefined 
npm ERR! git clone --template=C:\Users\Username\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror [email protected]:jeroennoten/webpack-stream.git C:\Users\Username\AppData\Roaming\npm-cache\_git-remotes\git-github-com-jeroennoten-webpack-stream-git-patch-1-b24e730a: undefined 
npm ERR! Windows_NT 10.0.14393 
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" 
npm ERR! node v6.9.4 
npm ERR! npm v3.10.10 
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\Username\Documents\Xampp\htdocs\development.test\npm-debug.log 

我曾嘗試使用的nodejs舊版本只是爲了看看,如果這能幫助解決這個問題,但沒有沒有得到它的任何地方。

我在Windows 10 64位上使用XAMPP本地服務器,並在我的機器上全局安裝了gulp。

請幫忙!!!

+0

閱讀錯誤信息,它表示您沒有安裝'git',或者它不在'npm'的路徑中查找。 – jmoerdyk

+0

我是一個新手,所以我不知道該怎麼做,以及在哪裏添加該git以使其工作。你能幫忙嗎? – AlexB

回答

0

所以只是回答我的問題,並可能幫助別人,誰也正經歷,因爲我是同樣的問題,我發現在棧here

答案只要確保你的電腦前上安裝的GitHub按照答案中的步驟說明進行操作。

感謝善良的人們,他們實際上可以花費寶貴的時間併發布正確的答案,而不是幾乎立即降級問題,甚至不需要幫助其他人。