PhoneGap的instalations [英] Phonegap instalations

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

问题描述

我试图安装的的PhoneGap 。结果
所以,我在命令提示符下运行的命令

  NPM安装-g的PhoneGap

但它会引发像误差 GIT 未找到,但我已经安装的 GIT

请在下面的错误提示。先谢谢了。

  C:\\用户\\ bellamks> NPM安装-g的PhoneGapNPM WARN addRemoteGit错误:未找到:混帐NPM ERR! NPM ERR!用git失败。 NPM ERR!这是最有可能不是
问题NPM本身。 NPM ERR!请检查您是否已经混帐
安装在路径中。NPM ERR!请包括任何支持请求以下文件:
NPM ERR! C:\\用户\\ bellamks \\ ​​NPM-的debug.log


解决方案

添加混帐到你的PATH的最简单的方法就是uncom preSS(任何你想要的)<一个href=\"https://github.com/git-for-windows/git/releases/download/v2.4.6.windows.1/PortableGit-2.4.6-5th-release-candidate-64-bit.7z.exe\"相对=nofollow> PortableGit-2.4.6-5th释放候选人-64 bit.7z.exe

添加 C:\\路径\\为\\ PortableGit-2.4.6-5th释放候选的64位\\ BIN 你的% PATH%。 (参见添加目录PATH环境变量在Windows

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

npm install -g phonegap

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

解决方案

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.

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的instalations的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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