Phonegap安装 [英] Phonegap installations

查看:93
本文介绍了Phonegap安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试安装 Phonegap .
所以我在命令提示符下运行了命令

I tried to installed Phonegap .
So I ran the command in command prompt

npm install -g phonegap

但是它会引发类似 GIT 的错误,但我已经安装了 GIT .

But it throws the error like GIT not found but I have already installed GIT.

请针对以下错误提出建议.预先感谢.

Please suggest on the below error. Thanks in advance.

C:\Users\bellamks>npm install -g phonegap

npm WARN addRemoteGit Error: 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\bellamks\npm-debug.log

推荐答案

将git添加到PATH的最简单方法是解压缩(任何位置)

The easiest way to add git to your PATH is to uncompress (anywhere you want) PortableGit-2.4.6-5th-release-candidate-64-bit.7z.exe.

C:\path\to\PortableGit-2.4.6-5th-release-candidate-64-bit\bin添加到您的%PATH%. (请参阅"在Windows中将目录添加到PATH环境变量中")

Add C:\path\to\PortableGit-2.4.6-5th-release-candidate-64-bit\bin to your %PATH%. (see "Adding directory to PATH Environment Variable in Windows")

这篇关于Phonegap安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆