-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。
請幫忙!!!
閱讀錯誤信息,它表示您沒有安裝'git',或者它不在'npm'的路徑中查找。 – jmoerdyk
我是一個新手,所以我不知道該怎麼做,以及在哪裏添加該git以使其工作。你能幫忙嗎? – AlexB