-2

我正在尝试gulp在开发环境XAMPP中安装在test site. 无论我做什么,我都会收到以下错误,我无法弄清楚出了什么问题:

# npm install
npm ERR! git clone --template=C:\Users\Username\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git@github.com: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 git@github.com: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

我曾尝试使用旧版本的nodejsjust 来看看这是否有助于解决问题,但也没有得到任何结果。

我在带有 XAMPP 本地服务器的 Windows 10 64 位上,并且在我的机器上全局安装了 gulp。

请帮忙!!!

4

1 回答 1

0

因此,只是为了回答我自己的问题并可能帮助其他也遇到与我相同的问题的人,我在这里的堆栈上找到了答案

在按照答案中给出的分步说明进行操作之前,请务必在您的计算机上安装 GitHub。

感谢好心人,他们实际上可以花宝贵的时间并发布正确的答案,而不是几乎立即降级问题,甚至不试图帮助他人。

于 2017-01-11T21:32:53.677 回答