0
votes

When I start to create a new react app, and run -npx create-react-app my-app, I see after installing reactand other modules, it is deleting all file folder. Below is the code details found in cmd. ... ├─ [email protected] └─ [email protected] Done in 422.17s. Error: EPERM: operation not permitted, open 'C:\Users\lenovo.yarnrc'

Aborting installation. yarnpkg add --exact react react-dom react-scripts --cwd D:\test\project\react\my-app has failed.

Deleting generated file... node_modules Deleting generated file... package.json Deleting generated file... yarn.lock Deleting my-app/ from D:\test\project\react Done.

D:\test\project\react>

Screen-shot of Command line tool as CMD lines after create-new-app

System And version: Windows10 [email protected] [email protected] [email protected] [email protected]

2

2 Answers

0
votes

Check out the solutions provided for npm - EPERM: operation not permitted on Windows here

If nothing works try downloading over different internet connection as well.

0
votes

Please remove any global installs with one of the following commands:

npm uninstall -g create-react-app
yarn global remove create-react-app

The latest instructions for creating a new app can be found here: https://create-react-app.dev/docs/getting-started/