Skip to content

Windows fails with EPERM: operation not permitted, all files are read-only #992

@oscar-b

Description

@oscar-b

Do you want to request a feature or report a bug?
Bug

What is the current behavior?
When performing any operation with yarn (add for instance) it errors with:

EPERM: operation not permitted, open 'C:\foo\node_modules\firebase\app-node.js'
at Error (native)

If the current behavior is a bug, please provide the steps to reproduce.

  1. Use Windows :(
  2. Use yarn
  3. Failure

To fix the issue, right click the node_modules folder and un-check "Read-only". Wait. Re-run yarn command. Now it works, like magic! After yarn is done, all files are back to being read-only though.

What is the expected behavior?
Shouldn't have to mark the files as readable.

Please mention your node.js, yarn and operating system version.
node v6.3.1
yarn v0.15.1
Windows 10 (anniversary edition)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions