大家好,我想在我的系统中安装react js进行学习,但是我无法安装react。 这是我安装React应用程序遵循的步骤。
首先,我下载了节点js的LTS版本。
然后我将node js安装到了C-Drive中。
npm -v
和node -v
。v6.14.4
和v12.16.3
。npm install -g create-react-app
create-react-app
,我是否使用过create-react-app --version
。3.4.1
create-react-app reactapp
放入文件夹在E-Drive中进行反应e:\react-learn>create-react-app reactapp
Creating a new React app in e:\react-learn\reactapp.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-templa
> core-js@2.6.11 postinstall e:\react-learn\reactapp\node_modu
node_modules\core-js
> node -e "try{require('./postinstall')}catch(e){}"
> core-js@3.6.5 postinstall e:\react-learn\reactapp\node_modul
> node -e "try{require('./postinstall')}catch(e){}"
> core-js-pure@3.6.5 postinstall e:\react-learn\reactapp\node_
re
> node -e "try{require('./postinstall')}catch(e){}"
+ react-scripts@3.4.1
+ react-dom@16.13.1
+ react@16.13.1
+ cra-template@1.0.3
added 1616 packages from 751 contributors and audited 1620 pac
59 packages are looking for funding
run `npm fund` for details
found 1 low severity vulnerability
run `npm audit fix` to fix them, or `npm audit` for details
已经一个小时了,但是在此之后代码没有运行,所以接下来我需要做的是建议我。 我也尝试过这些步骤...
但仍来自这些部分
run `npm fund` for details
found 1 low severity vulnerability
run `npm audit fix` to fix them, or `npm audit` for details```
代码没有向前发展,这是什么问题,我该如何解决?
答案 0 :(得分:0)
因为它建议在终端上运行npm审核修复程序,但是react应用已经创建,您只需将cd reactP放入文件夹并开始工作
尝试以下步骤