question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

EPERM: operation not permitted, open '....node_modules\win-ca\pem\roots.pem'

See original GitHub issue
  • SKD version - @sentry/electron@v1.1.0
  • Electron version - electron@v7.1.5
  • Platform - Windows Store

Description

Since we upgraded this package from v1.0.0 to v1.1.0 we see a lot of these errors for our Windows Store users:

EPERM: operation not permitted, open 'C:\Program Files\WindowsApps\<APP_NAME>.27241E05630EA_2.11.3.0_x86__kn85bz84x7te4\app\resources\app.asar.unpacked\node_modules\win-ca\pem\roots.pem'

I noticed in the changelog that you introduced this win-ca package in v1.1.0. Looks like this issue might be related?

Is downgrading to v1.0.0 the best solution for now? I couldn’t find any open issues, hence why I opened this one.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
timfishcommented, Dec 26, 2019

The virtualisation could certainly be the issue. win-ca will apparently attempt a few paths and the virtualisation can give the appearance of writing success but as files don’t persist this will then cause issues. I’ve opened a PR (#206) that makes win-ca use the sentry cache path which will hopefully fix this as we know it’s writable. I’ve also made it so that any errors that occur while calling win-ca are now ignored as this failure will not impact the vast majority of users.

electron-fetch was completely broken for electron@7 for a couple of months and it has also broken functionality in sentry-electron before. It did get fixed to work for electron@7, but there are many unresolved issues and while these issues are outstanding, it doesn’t seem like a great idea to continue to rely on it as a dependency.

0reactions
HazATcommented, Jan 8, 2020

1.2.0 is out now

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm - EPERM: operation not permitted on Windows
I use Windows 10. I started the CMD as administrator, and it solved the problem. Find CMD, right click, and click open as...
Read more >
npm install fails on Windows: "Error: EPERM: operation not ...
I work on Windows 10, up to date installation. npm i runs in powershell node v5.2.0 npm v3.3.12 This error occures every time....
Read more >
Error: EPERM: operation not permit… | Apple Developer Forums
I am installing packages for NODEJS/NPM and am receiving the following error, which, apparently, is not an error with the software, but with...
Read more >
Fixing intermittant 'EPERM: operation not permitted' on npm ...
The npm install step in my Teamcity CI build for an angular app I have been working has been failing intermittently and I...
Read more >
npm ERR! Error: EPERM: operation not permitted [Solved]
To solve the error npm ERR! Error: EPERM: operation not permitted, close your IDE (e.g. Visual Studio Code) and stop your development server....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found