简体   繁体   English

如何运行现有的 React Native 项目

[英]how to run an existing project of react native

I wanted to download and run someone else's project in order to consider its functions.我想下载并运行别人的项目,以考虑其功能。 I ran into a number of problems ... that it does not deign to start, and I just don't know what to do, help, please我遇到了许多问题......它并不适合开始,我只是不知道该怎么做,请帮助

https://github.com/sunlight3d/react_native_v0.49/tree/master/61-Realm%20React%20Native%235.Filter%20data%20and%20working%20with%20To-Many%20Relationships/code/tutorialProject https://github.com/sunlight3d/react_native_v0.49/tree/master/61-Realm%20React%20Native%235.Filter%20data%20and%20working%20with%20To-Many%20Relationships/code/tutorialProject

1) copied to the working folder tutorial project 1)复制到工作文件夹教程项目

2) opened VS code 2)打开VS代码

3) went into the working folder and clicked open in cmd folder tutorial project 3)进入工作文件夹,在cmd文件夹教程项目中点击打开

4) then I enter react-native run-android and get fiasco 4)然后我输入react-native run-android并获得惨败

d:\JS\tutorialProject>react-native init tutorialProject
 internal/modules/cjs/loader.js:657 throw err; ^

 Error: Cannot find module 'graceful-fs' at
 Function.Module._resolveFilename
 (internal/modules/cjs/loader.js:655:15) at Function.Module._load
 (internal/modules/cjs/loader.js:580:25) at Module.require
 (internal/modules/cjs/loader.js:711:19) at require
 (internal/modules/cjs/helpers.js:14:16) at Object.<anonymous>
 (d:\JS\tutorialProject\node_modules\react-native\local-cli\cli.js:12:1)
 at Module._compile (internal/modules/cjs/loader.js:805:30) at
 Object.Module._extensions..js (internal/modules/cjs/loader.js:816:10)
 at Module.load (internal/modules/cjs/loader.js:672:32) at
 tryModuleLoad (internal/modules/cjs/loader.js:612:12) at
 Function.Module._load (internal/modules/cjs/loader.js:604:3)

I started googling and found something to do with some dependencies.我开始使用谷歌搜索,发现与某些依赖项有关。 Using react-native init MyProject使用react-native init MyProject

5) react-native init tutorialProject and getting the tighter right line 5) react-native init tutorialProject并获得更严格的正确路线

I try to start the server through npm and then it's funny ... 6) npm-intall我尝试通过npm启动服务器,然后很有趣... 6) npm-intall

d:\JS\tutorialProject>npm install npm WARN deprecated core-js@1.2.7:
 core-js@<2.6.5 is no longer maintained. Please, upgrade to core-js@3
 or at least to actual version of core-js@2. npm WARN deprecated
 connect@2.30.2: connect 2.x series is deprecated npm ERR! path
 d:\JS\tutorialProject\node_modules\.bin\react-native npm ERR! code
 EEXIST npm ERR! Refusing to delete
 d:\JS\tutorialProject\node_modules\.bin\react-native: is outside
 d:\JS\tutorialProject\node_modules\react-native and not a link npm
 ERR! File exists: d:\JS\tutorialProject\node_modules\.bin\react-native
 npm ERR! Move it away, and try again.

 npm ERR! A complete log of this run can be found in: npm ERR!
 C:\Users\Nick\AppData\Roaming\npm-cache\_logs\2019-04-16T18_15_13_614Z-debug.log

and here I am absolutely don't know.在这里我绝对不知道。 How to run someone else's project?如何运行别人的项目?

I wanted to download and run someone else's project in order to consider its functions.我想下载并运行其他人的项目以考虑其功能。 I ran into a number of problems ... that it does not deign to start, and I just don't know what to do, help, please我遇到了许多问题...开始时并不合理,我只是不知道该怎么办,请帮忙

https://github.com/sunlight3d/react_native_v0.49/tree/master/61-Realm%20React%20Native%235.Filter%20data%20and%20working%20with%20To-Many%20Relationships/code/tutorialProject https://github.com/sunlight3d/react_native_v0.49/tree/master/61-Realm%20React%20Native%235.Filter%20data%20and%20working%20with%20To-Many%20Relationships/code/tutorialProject

1) copied to the working folder tutorial project 1)复制到工作文件夹教程项目

2) opened VS code 2)打开VS代码

3) went into the working folder and clicked open in cmd folder tutorial project 3)进入工作文件夹,然后单击“在cmd文件夹中打开教程项目”

4) then I enter react-native run-android and get fiasco 4)然后我进入react-native run-android并失败

d:\JS\tutorialProject>react-native init tutorialProject
 internal/modules/cjs/loader.js:657 throw err; ^

 Error: Cannot find module 'graceful-fs' at
 Function.Module._resolveFilename
 (internal/modules/cjs/loader.js:655:15) at Function.Module._load
 (internal/modules/cjs/loader.js:580:25) at Module.require
 (internal/modules/cjs/loader.js:711:19) at require
 (internal/modules/cjs/helpers.js:14:16) at Object.<anonymous>
 (d:\JS\tutorialProject\node_modules\react-native\local-cli\cli.js:12:1)
 at Module._compile (internal/modules/cjs/loader.js:805:30) at
 Object.Module._extensions..js (internal/modules/cjs/loader.js:816:10)
 at Module.load (internal/modules/cjs/loader.js:672:32) at
 tryModuleLoad (internal/modules/cjs/loader.js:612:12) at
 Function.Module._load (internal/modules/cjs/loader.js:604:3)

I started googling and found something to do with some dependencies.我开始谷歌搜索,发现与某些依赖关系。 Using react-native init MyProject使用react-native init MyProject

5) react-native init tutorialProject and getting the tighter right line 5) react-native init tutorialProject并获得更紧密的对位

I try to start the server through npm and then it's funny ... 6) npm-intall我尝试通过npm启动服务器,然后很有趣... 6) npm-intall

d:\JS\tutorialProject>npm install npm WARN deprecated core-js@1.2.7:
 core-js@<2.6.5 is no longer maintained. Please, upgrade to core-js@3
 or at least to actual version of core-js@2. npm WARN deprecated
 connect@2.30.2: connect 2.x series is deprecated npm ERR! path
 d:\JS\tutorialProject\node_modules\.bin\react-native npm ERR! code
 EEXIST npm ERR! Refusing to delete
 d:\JS\tutorialProject\node_modules\.bin\react-native: is outside
 d:\JS\tutorialProject\node_modules\react-native and not a link npm
 ERR! File exists: d:\JS\tutorialProject\node_modules\.bin\react-native
 npm ERR! Move it away, and try again.

 npm ERR! A complete log of this run can be found in: npm ERR!
 C:\Users\Nick\AppData\Roaming\npm-cache\_logs\2019-04-16T18_15_13_614Z-debug.log

and here I am absolutely don't know.而我绝对不知道。 How to run someone else's project?如何运行别人的项目?

I wanted to download and run someone else's project in order to consider its functions.我想下载并运行其他人的项目以考虑其功能。 I ran into a number of problems ... that it does not deign to start, and I just don't know what to do, help, please我遇到了许多问题...开始时并不合理,我只是不知道该怎么办,请帮忙

https://github.com/sunlight3d/react_native_v0.49/tree/master/61-Realm%20React%20Native%235.Filter%20data%20and%20working%20with%20To-Many%20Relationships/code/tutorialProject https://github.com/sunlight3d/react_native_v0.49/tree/master/61-Realm%20React%20Native%235.Filter%20data%20and%20working%20with%20To-Many%20Relationships/code/tutorialProject

1) copied to the working folder tutorial project 1)复制到工作文件夹教程项目

2) opened VS code 2)打开VS代码

3) went into the working folder and clicked open in cmd folder tutorial project 3)进入工作文件夹,然后单击“在cmd文件夹中打开教程项目”

4) then I enter react-native run-android and get fiasco 4)然后我进入react-native run-android并失败

d:\JS\tutorialProject>react-native init tutorialProject
 internal/modules/cjs/loader.js:657 throw err; ^

 Error: Cannot find module 'graceful-fs' at
 Function.Module._resolveFilename
 (internal/modules/cjs/loader.js:655:15) at Function.Module._load
 (internal/modules/cjs/loader.js:580:25) at Module.require
 (internal/modules/cjs/loader.js:711:19) at require
 (internal/modules/cjs/helpers.js:14:16) at Object.<anonymous>
 (d:\JS\tutorialProject\node_modules\react-native\local-cli\cli.js:12:1)
 at Module._compile (internal/modules/cjs/loader.js:805:30) at
 Object.Module._extensions..js (internal/modules/cjs/loader.js:816:10)
 at Module.load (internal/modules/cjs/loader.js:672:32) at
 tryModuleLoad (internal/modules/cjs/loader.js:612:12) at
 Function.Module._load (internal/modules/cjs/loader.js:604:3)

I started googling and found something to do with some dependencies.我开始谷歌搜索,发现与某些依赖关系。 Using react-native init MyProject使用react-native init MyProject

5) react-native init tutorialProject and getting the tighter right line 5) react-native init tutorialProject并获得更紧密的对位

I try to start the server through npm and then it's funny ... 6) npm-intall我尝试通过npm启动服务器,然后很有趣... 6) npm-intall

d:\JS\tutorialProject>npm install npm WARN deprecated core-js@1.2.7:
 core-js@<2.6.5 is no longer maintained. Please, upgrade to core-js@3
 or at least to actual version of core-js@2. npm WARN deprecated
 connect@2.30.2: connect 2.x series is deprecated npm ERR! path
 d:\JS\tutorialProject\node_modules\.bin\react-native npm ERR! code
 EEXIST npm ERR! Refusing to delete
 d:\JS\tutorialProject\node_modules\.bin\react-native: is outside
 d:\JS\tutorialProject\node_modules\react-native and not a link npm
 ERR! File exists: d:\JS\tutorialProject\node_modules\.bin\react-native
 npm ERR! Move it away, and try again.

 npm ERR! A complete log of this run can be found in: npm ERR!
 C:\Users\Nick\AppData\Roaming\npm-cache\_logs\2019-04-16T18_15_13_614Z-debug.log

and here I am absolutely don't know.而我绝对不知道。 How to run someone else's project?如何运行别人的项目?

I wanted to download and run someone else's project in order to consider its functions.我想下载并运行其他人的项目以考虑其功能。 I ran into a number of problems ... that it does not deign to start, and I just don't know what to do, help, please我遇到了许多问题...开始时并不合理,我只是不知道该怎么办,请帮忙

https://github.com/sunlight3d/react_native_v0.49/tree/master/61-Realm%20React%20Native%235.Filter%20data%20and%20working%20with%20To-Many%20Relationships/code/tutorialProject https://github.com/sunlight3d/react_native_v0.49/tree/master/61-Realm%20React%20Native%235.Filter%20data%20and%20working%20with%20To-Many%20Relationships/code/tutorialProject

1) copied to the working folder tutorial project 1)复制到工作文件夹教程项目

2) opened VS code 2)打开VS代码

3) went into the working folder and clicked open in cmd folder tutorial project 3)进入工作文件夹,然后单击“在cmd文件夹中打开教程项目”

4) then I enter react-native run-android and get fiasco 4)然后我进入react-native run-android并失败

d:\JS\tutorialProject>react-native init tutorialProject
 internal/modules/cjs/loader.js:657 throw err; ^

 Error: Cannot find module 'graceful-fs' at
 Function.Module._resolveFilename
 (internal/modules/cjs/loader.js:655:15) at Function.Module._load
 (internal/modules/cjs/loader.js:580:25) at Module.require
 (internal/modules/cjs/loader.js:711:19) at require
 (internal/modules/cjs/helpers.js:14:16) at Object.<anonymous>
 (d:\JS\tutorialProject\node_modules\react-native\local-cli\cli.js:12:1)
 at Module._compile (internal/modules/cjs/loader.js:805:30) at
 Object.Module._extensions..js (internal/modules/cjs/loader.js:816:10)
 at Module.load (internal/modules/cjs/loader.js:672:32) at
 tryModuleLoad (internal/modules/cjs/loader.js:612:12) at
 Function.Module._load (internal/modules/cjs/loader.js:604:3)

I started googling and found something to do with some dependencies.我开始谷歌搜索,发现与某些依赖关系。 Using react-native init MyProject使用react-native init MyProject

5) react-native init tutorialProject and getting the tighter right line 5) react-native init tutorialProject并获得更紧密的对位

I try to start the server through npm and then it's funny ... 6) npm-intall我尝试通过npm启动服务器,然后很有趣... 6) npm-intall

d:\JS\tutorialProject>npm install npm WARN deprecated core-js@1.2.7:
 core-js@<2.6.5 is no longer maintained. Please, upgrade to core-js@3
 or at least to actual version of core-js@2. npm WARN deprecated
 connect@2.30.2: connect 2.x series is deprecated npm ERR! path
 d:\JS\tutorialProject\node_modules\.bin\react-native npm ERR! code
 EEXIST npm ERR! Refusing to delete
 d:\JS\tutorialProject\node_modules\.bin\react-native: is outside
 d:\JS\tutorialProject\node_modules\react-native and not a link npm
 ERR! File exists: d:\JS\tutorialProject\node_modules\.bin\react-native
 npm ERR! Move it away, and try again.

 npm ERR! A complete log of this run can be found in: npm ERR!
 C:\Users\Nick\AppData\Roaming\npm-cache\_logs\2019-04-16T18_15_13_614Z-debug.log

and here I am absolutely don't know.而我绝对不知道。 How to run someone else's project?如何运行别人的项目?

I wanted to download and run someone else's project in order to consider its functions.我想下载并运行其他人的项目以考虑其功能。 I ran into a number of problems ... that it does not deign to start, and I just don't know what to do, help, please我遇到了很多问题...开始时并不合理,我只是不知道该怎么办,请帮忙

https://github.com/sunlight3d/react_native_v0.49/tree/master/61-Realm%20React%20Native%235.Filter%20data%20and%20working%20with%20To-Many%20Relationships/code/tutorialProject https://github.com/sunlight3d/react_native_v0.49/tree/master/61-Realm%20React%20Native%235.Filter%20data%20and%20working%20with%20To-Many%20Relationships/code/tutorialProject

1) copied to the working folder tutorial project 1)复制到工作文件夹教程项目

2) opened VS code 2)打开VS代码

3) went into the working folder and clicked open in cmd folder tutorial project 3)进入工作文件夹,然后单击“在cmd文件夹中打开教程项目”

4) then I enter react-native run-android and get fiasco 4)然后我进入react-native run-android并失败

d:\JS\tutorialProject>react-native init tutorialProject
 internal/modules/cjs/loader.js:657 throw err; ^

 Error: Cannot find module 'graceful-fs' at
 Function.Module._resolveFilename
 (internal/modules/cjs/loader.js:655:15) at Function.Module._load
 (internal/modules/cjs/loader.js:580:25) at Module.require
 (internal/modules/cjs/loader.js:711:19) at require
 (internal/modules/cjs/helpers.js:14:16) at Object.<anonymous>
 (d:\JS\tutorialProject\node_modules\react-native\local-cli\cli.js:12:1)
 at Module._compile (internal/modules/cjs/loader.js:805:30) at
 Object.Module._extensions..js (internal/modules/cjs/loader.js:816:10)
 at Module.load (internal/modules/cjs/loader.js:672:32) at
 tryModuleLoad (internal/modules/cjs/loader.js:612:12) at
 Function.Module._load (internal/modules/cjs/loader.js:604:3)

I started googling and found something to do with some dependencies.我开始谷歌搜索,发现与某些依赖关系。 Using react-native init MyProject使用react-native init MyProject

5) react-native init tutorialProject and getting the tighter right line 5) react-native init tutorialProject并获得更紧密的对位

I try to start the server through npm and then it's funny ... 6) npm-intall我尝试通过npm启动服务器,然后很有趣... 6) npm-intall

d:\JS\tutorialProject>npm install npm WARN deprecated core-js@1.2.7:
 core-js@<2.6.5 is no longer maintained. Please, upgrade to core-js@3
 or at least to actual version of core-js@2. npm WARN deprecated
 connect@2.30.2: connect 2.x series is deprecated npm ERR! path
 d:\JS\tutorialProject\node_modules\.bin\react-native npm ERR! code
 EEXIST npm ERR! Refusing to delete
 d:\JS\tutorialProject\node_modules\.bin\react-native: is outside
 d:\JS\tutorialProject\node_modules\react-native and not a link npm
 ERR! File exists: d:\JS\tutorialProject\node_modules\.bin\react-native
 npm ERR! Move it away, and try again.

 npm ERR! A complete log of this run can be found in: npm ERR!
 C:\Users\Nick\AppData\Roaming\npm-cache\_logs\2019-04-16T18_15_13_614Z-debug.log

and here I am absolutely don't know.而我绝对不知道。 How to run someone else's project?如何运行别人的项目?

I wanted to download and run someone else's project in order to consider its functions.我想下载并运行其他人的项目以考虑其功能。 I ran into a number of problems ... that it does not deign to start, and I just don't know what to do, help, please我遇到了许多问题...开始时并不合理,我只是不知道该怎么办,请帮忙

https://github.com/sunlight3d/react_native_v0.49/tree/master/61-Realm%20React%20Native%235.Filter%20data%20and%20working%20with%20To-Many%20Relationships/code/tutorialProject https://github.com/sunlight3d/react_native_v0.49/tree/master/61-Realm%20React%20Native%235.Filter%20data%20and%20working%20with%20To-Many%20Relationships/code/tutorialProject

1) copied to the working folder tutorial project 1)复制到工作文件夹教程项目

2) opened VS code 2)打开VS代码

3) went into the working folder and clicked open in cmd folder tutorial project 3)进入工作文件夹,然后单击“在cmd文件夹中打开教程项目”

4) then I enter react-native run-android and get fiasco 4)然后我进入react-native run-android并失败

d:\JS\tutorialProject>react-native init tutorialProject
 internal/modules/cjs/loader.js:657 throw err; ^

 Error: Cannot find module 'graceful-fs' at
 Function.Module._resolveFilename
 (internal/modules/cjs/loader.js:655:15) at Function.Module._load
 (internal/modules/cjs/loader.js:580:25) at Module.require
 (internal/modules/cjs/loader.js:711:19) at require
 (internal/modules/cjs/helpers.js:14:16) at Object.<anonymous>
 (d:\JS\tutorialProject\node_modules\react-native\local-cli\cli.js:12:1)
 at Module._compile (internal/modules/cjs/loader.js:805:30) at
 Object.Module._extensions..js (internal/modules/cjs/loader.js:816:10)
 at Module.load (internal/modules/cjs/loader.js:672:32) at
 tryModuleLoad (internal/modules/cjs/loader.js:612:12) at
 Function.Module._load (internal/modules/cjs/loader.js:604:3)

I started googling and found something to do with some dependencies.我开始谷歌搜索,发现与某些依赖关系。 Using react-native init MyProject使用react-native init MyProject

5) react-native init tutorialProject and getting the tighter right line 5) react-native init tutorialProject并获得更紧密的对位

I try to start the server through npm and then it's funny ... 6) npm-intall我尝试通过npm启动服务器,然后很有趣... 6) npm-intall

d:\JS\tutorialProject>npm install npm WARN deprecated core-js@1.2.7:
 core-js@<2.6.5 is no longer maintained. Please, upgrade to core-js@3
 or at least to actual version of core-js@2. npm WARN deprecated
 connect@2.30.2: connect 2.x series is deprecated npm ERR! path
 d:\JS\tutorialProject\node_modules\.bin\react-native npm ERR! code
 EEXIST npm ERR! Refusing to delete
 d:\JS\tutorialProject\node_modules\.bin\react-native: is outside
 d:\JS\tutorialProject\node_modules\react-native and not a link npm
 ERR! File exists: d:\JS\tutorialProject\node_modules\.bin\react-native
 npm ERR! Move it away, and try again.

 npm ERR! A complete log of this run can be found in: npm ERR!
 C:\Users\Nick\AppData\Roaming\npm-cache\_logs\2019-04-16T18_15_13_614Z-debug.log

and here I am absolutely don't know.而我绝对不知道。 How to run someone else's project?如何运行别人的项目?

I wanted to download and run someone else's project in order to consider its functions.我想下载并运行其他人的项目以考虑其功能。 I ran into a number of problems ... that it does not deign to start, and I just don't know what to do, help, please我遇到了许多问题...开始时并不合理,我只是不知道该怎么办,请帮忙

https://github.com/sunlight3d/react_native_v0.49/tree/master/61-Realm%20React%20Native%235.Filter%20data%20and%20working%20with%20To-Many%20Relationships/code/tutorialProject https://github.com/sunlight3d/react_native_v0.49/tree/master/61-Realm%20React%20Native%235.Filter%20data%20and%20working%20with%20To-Many%20Relationships/code/tutorialProject

1) copied to the working folder tutorial project 1)复制到工作文件夹教程项目

2) opened VS code 2)打开VS代码

3) went into the working folder and clicked open in cmd folder tutorial project 3)进入工作文件夹,然后单击“在cmd文件夹中打开教程项目”

4) then I enter react-native run-android and get fiasco 4)然后我进入react-native run-android并失败

d:\JS\tutorialProject>react-native init tutorialProject
 internal/modules/cjs/loader.js:657 throw err; ^

 Error: Cannot find module 'graceful-fs' at
 Function.Module._resolveFilename
 (internal/modules/cjs/loader.js:655:15) at Function.Module._load
 (internal/modules/cjs/loader.js:580:25) at Module.require
 (internal/modules/cjs/loader.js:711:19) at require
 (internal/modules/cjs/helpers.js:14:16) at Object.<anonymous>
 (d:\JS\tutorialProject\node_modules\react-native\local-cli\cli.js:12:1)
 at Module._compile (internal/modules/cjs/loader.js:805:30) at
 Object.Module._extensions..js (internal/modules/cjs/loader.js:816:10)
 at Module.load (internal/modules/cjs/loader.js:672:32) at
 tryModuleLoad (internal/modules/cjs/loader.js:612:12) at
 Function.Module._load (internal/modules/cjs/loader.js:604:3)

I started googling and found something to do with some dependencies.我开始谷歌搜索,发现与某些依赖关系。 Using react-native init MyProject使用react-native init MyProject

5) react-native init tutorialProject and getting the tighter right line 5) react-native init tutorialProject并获得更紧密的对位

I try to start the server through npm and then it's funny ... 6) npm-intall我尝试通过npm启动服务器,然后很有趣... 6) npm-intall

d:\JS\tutorialProject>npm install npm WARN deprecated core-js@1.2.7:
 core-js@<2.6.5 is no longer maintained. Please, upgrade to core-js@3
 or at least to actual version of core-js@2. npm WARN deprecated
 connect@2.30.2: connect 2.x series is deprecated npm ERR! path
 d:\JS\tutorialProject\node_modules\.bin\react-native npm ERR! code
 EEXIST npm ERR! Refusing to delete
 d:\JS\tutorialProject\node_modules\.bin\react-native: is outside
 d:\JS\tutorialProject\node_modules\react-native and not a link npm
 ERR! File exists: d:\JS\tutorialProject\node_modules\.bin\react-native
 npm ERR! Move it away, and try again.

 npm ERR! A complete log of this run can be found in: npm ERR!
 C:\Users\Nick\AppData\Roaming\npm-cache\_logs\2019-04-16T18_15_13_614Z-debug.log

and here I am absolutely don't know.而我绝对不知道。 How to run someone else's project?如何运行别人的项目?

Just run赶紧跑

  1. npm cache clean --force
  2. npm i or npm install npm inpm install

Install Chocolatey Chocolatey is a popular package manager for Windows.安装 Chocolatey Chocolatey 是一个流行的 Windows 包管理器。 So at first, we need to install it on our system.所以首先,我们需要在我们的系统上安装它。

To install Chocolaty, Open Command Prompt with administrator privileges and run the command below.要安装 Chocolaty,请以管理员权限打开命令提示符并运行以下命令。

@"%SystemRoot%\\System32\\WindowsPowerShell\\v1.0\\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\\chocolatey\\bin" @"%SystemRoot%\\System32\\WindowsPowerShell\\v1.0\\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System. Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\\chocolatey\\bin"

choco install -y nodejs.install python2 jdk8. choco install -y nodejs.install python2 jdk8。

npm install –g react-native-cli npm install –g react-native-cli

More Detail Follow this 更多细节关注这个

在此处输入图片说明

Path in user variable upper section用户变量上半部分中的路径在此处输入图片说明

在此处输入图片说明

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在win10上正确运行react-native项目? - How properly run a react-native project on win10? 不能再在模拟器上运行 React Native 项目了 - Cant run React Native Project on Emulator anymore React 本机项目不运行 iOS - React native project doesn't run iOS 如何为具有特定路径的现有项目创建私有Git Repo(React Native)? - How can I create private Git Repo for existing project with a specific path (React Native)? 如何运行 React Native 程序 - How to run React native program 如何在 React Native run-android 中解决“您的项目中需要有 MainApplication” - How do I resolve 'You need to have MainApplication in your project' in React native run-android 如何修复错误说“任务:app:installDebug FAILED”,同时在android studio中运行我的反应本机项目? - How to fix error saying “Task :app:installDebug FAILED”, while run my react native project in android studio? 如何使用NODE_ENV ==&#39;production&#39;让XCode运行我的react-native项目 - How do I get XCode to run my react-native project with NODE_ENV == 'production' 当我使用“react-native run-ios”运行 React Native 项目时显示错误 - React Native project showing error when I run it using "react-native run-ios" 如何将 React 组件添加到现有的 Django 项目 - How to add React components to existing Django project
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM