Skip to content

Windows 10 Powershell create-react-app EPERM error on yarn.lock #11638

@bradrice

Description

@bradrice

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:)

  1. Tries to create the app
  2. Throws an EPERM error
  3. Deletes the resulting files except for the yarn-error.log file

Expected behavior

Create a react app

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions