在Windows 7上安装DocPad 6.53时出错

时间:2013-10-12 09:40:32

标签: docpad

当我尝试使用以下命令安装DocPad时

npm install -g docpad@6.53

我收到此错误:

npm ERR! Error: No compatible version found: reduce@'RedVentures/reduce#346d59'
npm ERR! Valid install targets:
npm ERR! ["0.1.0","0.1.2"]
npm ERR!     at installTargetsError (C:\Program Files\nodejs\node_modules\npm\lib\cache.js:719:10)
npm ERR!     at C:\Program Files\nodejs\node_modules\npm\lib\cache.js:638:10
npm ERR!     at saved (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\get.js:142:7)
npm ERR!     at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:133:7
npm ERR!     at Object.oncomplete (fs.js:107:15)
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Windows_NT 6.1.7600
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "docpad@6.53.4
"
npm ERR! cwd D:\!Docpad
npm ERR! node -v v0.10.20
npm ERR! npm -v 1.3.11
  • 操作系统:Windows 7
  • NodeJs:v0.10.20
  • NPM:1.3.11

知道可能出现什么问题吗?我怎么能绕过这个?

1 个答案:

答案 0 :(得分:2)

安装Git并将其添加到路径解决了问题:

enter image description here

可以找到更多信息there