Open bradrice opened 2 years ago
Have you tried reproducing this in procmon? This is usually where I start when I run into weird issues like this.
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.
I am having the same issue also:
`Installing packages. This might take a couple of minutes. Installing react, react-dom, and react-scripts with cra-template...
yarn add v1.22.15 info No lockfile found. [1/4] Resolving packages... warning react-scripts > @svgr/webpack > @svgr/plugin-svgo > svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x. [2/4] Fetching packages... error An unexpected error occurred: "C:\Users\xxx\AppData\Local\Yarn\Cache\v6\npm-@babel-plugin-transform-for-of-7.16.7-649d639d4617dff502a9a158c479b3b556728d8c-integrity\nodemodules\@babel\plugin-transform-for-of\.yarn-metadata.json: Unexpected end of JSON input". info If you think this is a bug, please open a bug report with the information provided in "C:\Users\xxx\Desktop\xxx\yarn-error.log". info Visit https://yarnpkg.com/en/docs/cli/add_ for documentation about this command.
Aborting installation. `
Describe the bug
Using Windows Powershell running this command 'npx create-react-app xx' I get error An unexpected error occurred: "EPERM: operation not permitted, open 'C:\Users\brice\source\repos\xx\yarn.lock'".
Even if I elevate to Administration I get the error. I have full permissions on the source\repos folder.
Environment
Environment Info:
current version of create-react-app: 4.0.3 running from C:\Users\brice\AppData\Local\npm-cache_npx\c67e74de0542c87c\node_modules\create-react-app
System: OS: Windows 10 10.0.19042 CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz Binaries: Node: 16.13.0 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.4 - C:\Program Files (x86)\Yarn\bin\yarn.CMD npm: 8.1.3 - C:\Program Files\nodejs\npm.CMD Browsers: Chrome: 95.0.4638.69 Edge: Spartan (44.19041.1266.0), Chromium (95.0.1020.44) Internet Explorer: 11.0.19041.1202 npmPackages: react: Not Found react-dom: Not Found react-scripts: Not Found npmGlobalPackages: create-react-app: Not Found
(paste the output of the command here.)
Steps to reproduce
(Write your steps here:)
Expected behavior
Create a react app