I'm very newbie to ReactJs. I'm following this tutorial. but I'm getting error like:
我是ReactJs的新手。我正在学习本教程。但我得到的错误如下:
npm ERR! git clone --template=C:\Users\harshalb\AppData\Roaming\npm-cache_git-r emotes_templates --mirror git@github.com:facebook/react.git C:\Users\harshalb\A ppData\Roaming\npm-cache_git-remotes\git-github-com-facebook-react-git-b4e74e3- a74af502d8e5579c42e0f6b0488923ce: undefined npm ERR! git clone --template=C:\Users\harshalb\AppData\Roaming\npm-cache_git-r emotes_templates --mirror git@github.com:facebook/react.git C:\Users\harshalb\A ppData\Roaming\npm-cache_git-remotes\git-github-com-facebook-react-git-b4e74e3- a74af502d8e5579c42e0f6b0488923ce: undefined npm ERR! Windows_NT 6.1.7601 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\ node_modules\npm\bin\npm-cli.js" "install" "--save" "react-native" npm ERR! node v5.0.0 npm ERR! npm v3.3.6 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! D:\Dictionary\npm-debug.log npm install --save react-native
failed
错误的ERR! git clone --template = C:\ Users \ harshalb \ AppData \ Roaming \ npm-cache_git -r emotes_templates --mrite git@github.com:facebook / react.git C:\ Users \ harshalb \ A ppData \ Roaming \ npm -cache_git-remotes \ git-github-com-facebook-react-git-b4e74e3- a74af502d8e5579c42e0f6b0488923ce:undefined npm ERR! git clone --template = C:\ Users \ harshalb \ AppData \ Roaming \ npm-cache_git -r emotes_templates --mrite git@github.com:facebook / react.git C:\ Users \ harshalb \ A ppData \ Roaming \ npm -cache_git-remotes \ git-github-com-facebook-react-git-b4e74e3- a74af502d8e5579c42e0f6b0488923ce:undefined npm ERR! Windows_NT 6.1.7601 npm ERR! argv“C:\ Program Files \ nodejs \ node.exe”“C:\ Program Files \ nodejs \ node_modules \ npm \ bin \ npm-cli.js”“install”“--save”“react-native”npm ERR !节点v5.0.0 npm ERR! npm v3.3.6 npm ERR!代码ENOGIT npm ERR!找不到:git npm ERR!错误的ERR!使用git失败了。错误的ERR!这很可能不是npm本身的问题。错误的ERR!请检查您是否安装了git并在PATH中。错误的ERR!请在任何支持请求中包含以下文件:npm ERR! D:\ Dictionary \ npm-debug.log npm install --save react-native failed
can anybody tell me where I'm getting wrong..
任何人都可以告诉我哪里出错了..
2 个解决方案
#1
0
Getting your Android environment setup is time consuming and am act of tenacity. Took me 3 hrs. I would recommend that you first ensure you get setup right via the official documentation. Since you are on windows, you may have additional challenges. Don't be discouraged! Getting setup is the toughest part. See this link for starts... https://facebook.github.io/react-native/docs/linux-windows-support.html#content
设置Android环境非常耗时,而且是坚韧不拔的行为。花了我3个小时。我建议您首先确保通过官方文档进行设置。由于您使用的是Windows,因此可能会遇到其他挑战。不要气馁!获得设置是最棘手的部分。请参阅此链接以了解... https://facebook.github.io/react-native/docs/linux-windows-support.html#content
#2
0
install Git for windows with check the option "Run Git from Windows Command Prompt".
安装Git for Windows,选中“从Windows命令提示符运行Git”选项。
Navigate to the Environmental Variables Editor (instructions) and find the Path variable in the “System Variables” section. Click Edit… and paste the URL of Git to the end of that string. for me its ;C:\Users\akshay\AppData\Local\Programs\Git\cmd
导航到环境变量编辑器(说明)并在“系统变量”部分中找到Path变量。单击编辑...并将Git的URL粘贴到该字符串的末尾。对我而言; C:\ Users \ akshay \ AppData \ Local \ Programs \ Git \ cmd
#1
0
Getting your Android environment setup is time consuming and am act of tenacity. Took me 3 hrs. I would recommend that you first ensure you get setup right via the official documentation. Since you are on windows, you may have additional challenges. Don't be discouraged! Getting setup is the toughest part. See this link for starts... https://facebook.github.io/react-native/docs/linux-windows-support.html#content
设置Android环境非常耗时,而且是坚韧不拔的行为。花了我3个小时。我建议您首先确保通过官方文档进行设置。由于您使用的是Windows,因此可能会遇到其他挑战。不要气馁!获得设置是最棘手的部分。请参阅此链接以了解... https://facebook.github.io/react-native/docs/linux-windows-support.html#content
#2
0
install Git for windows with check the option "Run Git from Windows Command Prompt".
安装Git for Windows,选中“从Windows命令提示符运行Git”选项。
Navigate to the Environmental Variables Editor (instructions) and find the Path variable in the “System Variables” section. Click Edit… and paste the URL of Git to the end of that string. for me its ;C:\Users\akshay\AppData\Local\Programs\Git\cmd
导航到环境变量编辑器(说明)并在“系统变量”部分中找到Path变量。单击编辑...并将Git的URL粘贴到该字符串的末尾。对我而言; C:\ Users \ akshay \ AppData \ Local \ Programs \ Git \ cmd