[英]while running npx create-react-app it shows packages are looking for funding
I want to run my first react app I have installed node I have installed react globally using npm install -g create-react-app
but when i want to create react app using npx this happens我想运行我的第一个反应应用程序我已经安装了节点我已经使用
npm install -g create-react-app
但是当我想使用 npx 创建反应应用程序时会发生这种情况
C:\Users\deep>npm install -g create-react-app
C:\Users\deep\AppData\Roaming\npm\create-react-app -> C:\Users\deep\AppData\Roaming\npm\node_modules\create-react-app\index.js
+ create-react-app@3.4.1
updated 1 package in 14.608s
C:\Users\deep>cd Desktop
C:\Users\deep\Desktop>cd lets go
C:\Users\deep\Desktop\lets go>npx create-react-app myfirstreact
Creating a new React app in C:\Users\deep\Desktop\lets go\myfirstreact.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...
> core-js@2.6.11 postinstall C:\Users\deep\Desktop\lets go\myfirstreact\node_modules\babel-runtime\node_modules\core-js
> node -e "try{require('./postinstall')}catch(e){}"
> core-js@3.6.5 postinstall C:\Users\deep\Desktop\lets go\myfirstreact\node_modules\core-js
> node -e "try{require('./postinstall')}catch(e){}"
> core-js-pure@3.6.5 postinstall C:\Users\deep\Desktop\lets go\myfirstreact\node_modules\core-js-pure
> node -e "try{require('./postinstall')}catch(e){}"
+ react-scripts@3.4.1
+ react-dom@16.13.1
+ cra-template@1.0.3
+ react@16.13.1
added 1627 packages from 752 contributors in 367.744s
59 packages are looking for funding
run `npm fund` for details
How should I run my first react app?我应该如何运行我的第一个 React 应用程序?
npx create-react-app my-app
Use this command to have folders created.使用此命令创建文件夹。
Welcome on Stack Overflow.欢迎来到堆栈溢出。
You should fully read the Getting Started section on ReactJS website which is really complete.您应该完整阅读 ReactJS 网站上的入门部分,该部分非常完整。 https://fr.reactjs.org/docs/create-a-new-react-app.html
https://fr.reactjs.org/docs/create-a-new-react-app.html
By the way,顺便一提,
npx create-react-app mon-app
is used to create ReactJS project. npx create-react-app mon-app
用于创建 ReactJS 项目。
npm start
is used to "launch" the project. npm start
用于“启动”项目。
Based on What does 'x packages are looking for funding' mean when running `npm install`?基于运行“npm install”时“x 包正在寻找资金”是什么意思? .
. or What does 'x packages are looking for funding' mean when running `npm install`?
或运行“npm install”时“x 包正在寻找资金”是什么意思? The funding alert means that some packages that you've installed need some fund (MONEY)
资金警报意味着您安装的某些软件包需要一些资金(MONEY)
Note: Avoid folder/file name with space that could avoid you some error in the future.注意:避免使用空格的文件夹/文件名,以免将来出现一些错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.