简体   繁体   English

无法使用 npx create-react-app 创建反应应用程序

[英]Unable to create react app using npx create-react-app

I tried npx create-react-app command on terminal but I'm getting the following error:-我在终端上尝试npx create-react-app命令,但出现以下错误:-

npm ERR! code E403
npm ERR! 403 403 Forbidden - GET https://registry.npmjs.org/create-react-app
npm ERR! 403 In most cases, you or one of your dependencies are requesting
npm ERR! 403 a package version that is forbidden by your security policy.

npm -v is 6.14.11 npm -v 是 6.14.11
node -v is v12.21.0 节点 -v 是 v12.21.0
Please help. 请帮忙。

Just Try to use sudo npx create-react-app if still not working Test this solution如果仍然无法正常工作,请尝试使用sudo npx create-react-app测试此解决方案

npm init
npm install create-react-app
npx create-react-app myapp

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM