2

I tried npx create-react-app command on terminal but I'm getting the following error:-

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
node -v is v12.21.0
Please help.
Neha Chaudhary
  • 1,071
  • 4
  • 15
  • 31
  • 1
    Does this answer your question? [How to debug 'npm ERR! 403 In most cases, you or one of your dependencies are requesting a package version that is forbidden by your security policy.'](https://stackoverflow.com/questions/62830477/how-to-debug-npm-err-403-in-most-cases-you-or-one-of-your-dependencies-are-re) – Boaz May 04 '21 at 08:31
  • 1
    Also, possibly: [npm behind a proxy fails with status 403](https://stackoverflow.com/questions/11773509/npm-behind-a-proxy-fails-with-status-403) – Boaz May 04 '21 at 08:32
  • 2
    I am connected to VPN.. this might be the issue – Neha Chaudhary May 04 '21 at 08:34
  • If the VPN proves to be the issue, please consider [self-closing your question as a duplicate](https://meta.stackexchange.com/questions/79916/is-it-possible-to-mark-my-own-question-as-duplicate-of-another). – Boaz May 04 '21 at 12:41
  • After removing VPN too.. it shows the same error – Neha Chaudhary May 04 '21 at 17:58

1 Answers1

1

Just Try to use sudo npx create-react-app if still not working Test this solution

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