Khalid Hossain
Khalid Hossain

Reputation: 13

I want to create React Native App, but getting this error. What can I do?

Actual image here: https://drive.google.com/open?id=1avqikjxB6n2dnBNh9qZ0Yugk7kNki8wb

Terminal output:

Microsoft Windows [Version 10.0.18362.720] (c) 2019 Microsoft Corporation. All rights reserved.

C:\Users\Khalid Babu\Desktop\ReactNative>npx react-native init firstApp
Error: EPERM: operation not permitted, mkdir 'C:\Users\Khalid'
command not found: react-native
...

Upvotes: -1

Views: 1078

Answers (1)

Rajan
Rajan

Reputation: 1568

Make sure you have installed react-native-cli globally

npm install -g react-native-cli

than

react-native init AwesomeProject

Also, there are some Prerequisites. Please check it as well.

  1. Download and install JDK (v7 or newer)
  2. Download and install Node
  3. Download and install Android Studio Create an environment variable with the Java SDK path:

Windows → Search → System → Advanced System Settings → Environment variables → New

JAVA_HOME: C:\path\to\JavaSDK

For more detail visit mentioned in the below link

https://shift.infinite.red/getting-started-with-react-native-development-on-windows-90d85a72ae65

Upvotes: 0

Related Questions