我正在运行npx create react app my app
,出现以下错误:
Creating a new React app in D:\Other computers\My Laptop\Programming [P]\Web Development\Projects\my-portfolio\my-app.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...
npm ERR! code EEXIST
npm ERR! syscall mkdir
npm ERR! path D:\Other computers\My Laptop\Programming [P]\Web Development\Projects\my-portfolio\my-app\node_modules\.staging
npm ERR! errno -4075
npm ERR! EEXIST: file already exists, mkdir 'D:\Other computers\My Laptop\Programming [P]\Web Development\Projects\my-portfolio\my-app\node_modules\.staging'
npm ERR! File exists: D:\Other computers\My Laptop\Programming [P]\Web Development\Projects\my-portfolio\my-app\node_modules\.staging
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with --force to overwrite files recklessly.
我曾经尝试过:
请帮忙!
如果您不想覆盖我的应用程序
目录的内容,您可以为您的应用程序选择不同的名称。像这样的方法应该会奏效:
npx创建反应应用程序myapp
但是,如果您不担心已经存在的目录,可以执行以下操作:
npx创建反应应用程序我的应用程序--force