我想创建 React Native App,但收到此错误。我能做些什么?

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

此处为实际图片:https://drive.google.com/open?id=1avqikjxB6n2dnBNh9qZ0Yugk7kNki8wb

终端输出:

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
...

确保您已安装 react-native-cli 全局

npm install -g react-native-cli

react-native init AwesomeProject

此外,还有一些先决条件。也请检查一下。

  1. 下载并安装 JDK(v7 或更高版本)
  2. 下载并安装节点
  3. 下载安装AndroidStudio 创建环境变量 使用 Java SDK 路径:

Windows→搜索→系统→高级系统设置→环境变量→新建

JAVA_HOME: C:\path\to\JavaSDK

更多详细信息请访问下面提到的 link

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