[英]unable to create-react-app using npx install command
i am unable to install npx-react-app as it is getting stopped at the below point我无法安装 npx-react-app 因为它在以下点停止
Acer@LAPTOP-OTBULEBK MINGW64 ~/Desktop/coding (dev)
$ npx create-react-app hello
Creating a new React app in C:\Users\Acer\Desktop\coding\hello.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...
if it is processing from the above stoppable step it is showing error as below如果它是从上述可停止步骤处理的,则显示如下错误
$ npx create-react-app hello
Creating a new React app in C:\Users\Acer\Desktop\coding\hello.
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\Acer\Desktop\coding\hello\node_modules\babel-runtime\node_modules\core-js
> node -e "try{require('./postinstall')}catch(e){}"
> core-js@3.6.5 postinstall C:\Users\Acer\Desktop\coding\hello\node_modules\core-js
> node -e "try{require('./postinstall')}catch(e){}"
> core-js-pure@3.6.5 postinstall C:\Users\Acer\Desktop\coding\hello\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 1602 packages from 751 contributors and audited 1606 packages in 309.352s
60 packages are looking for funding
run `npm fund` for details
found 4981 low severity vulnerabilities
run `npm audit fix` to fix them, or `npm audit` for details
I have the below node/npm versions installed我安装了以下节点/npm 版本
Acer@LAPTOP-OTBULEBK MINGW64 ~/Desktop/coding (dev) $ node -v
v12.16.2
Acer@LAPTOP-OTBULEBK MINGW64 ~/Desktop/coding (dev) $ npm -v
6.14.4
Acer@LAPTOP-OTBULEBK MINGW64 ~/Desktop/coding (dev) $ npx -v
6.14.4
after facing with this issue i uninstalled above installation and install the current version遇到这个问题后,我卸载了上面的安装并安装了当前版本
Acer@LAPTOP-OTBULEBK MINGW64 ~/Desktop/coding (dev) $node -v
v14.5.0
Acer@LAPTOP-OTBULEBK MINGW64 ~/Desktop/coding (dev) $ npm -v
6.14.5
but still it is showing error as above但仍然显示上述错误
This is happening because some packages now actually make it quite a subtle demand to fund their projects before using it.之所以发生这种情况,是因为现在某些软件包实际上提出了在使用之前为其项目提供资金的非常微妙的需求。
npm
has added a new command npm fund <YOUR PACKAGE NAME>
which will list down all the websites that are sort of requiring funding. npm
添加了一个新命令npm fund <YOUR PACKAGE NAME>
将列出所有需要资金的网站。
You can skip funding any of them (Not so nice but neither is open force forcing funding) by using:您可以通过以下方式跳过资助其中任何一个(不太好,但开放强制资助也不是):
npm install --no-fund <YOUR PACKAGE NAME>
You might want to consider reading this: https://docs.npmjs.com/files/npmrc and this https://dev.to/ruyadorno/npm-6-13-0-7f3 for clarity.您可能需要考虑阅读以下内容: https://docs.npmjs.com/files/npmrc和此https://dev.to/ruyadorno/npm-6-13-0-7f3以清楚起见。
Let me know if this helps and if not, I will figure this out together with you.让我知道这是否有帮助,如果没有,我会和你一起解决这个问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.