platformOS Community

How do I fix a deploy issue?

SR Jan 24 2021 at 16:16

When I deploy, I receive the following error...

Error: EPERM: operation not permitted, open...

I am able to sync, and there are no log errors. And, I was able to deploy this instance previously.

I tried re-adding the staging environment, but that also didn't solve the issue.

Any suggestions?

  • Adam Jan 24 2021 at 16:23
    @pawel or @piotr may have hints.
  • JJBragg Jan 25 2021 at 15:04
    Hey Scott... maybe a local permission issue?
  • SR Jan 25 2021 at 15:32
    Thanks for the replies. It's working today - although I'm not sure why (I didn't make any changes).
Pawel Jan 26 2021 at 12:14

Looks like windows/npm issue: https://stackoverflow.com/questions/34600932/npm-eperm-operation-not-permitted-on-windows
Someone fixed it by disabling defender's real time protection: https://github.com/expo/create-react-native-app/issues/191#issuecomment-304073970

From Microsoft blog: https://docs.microsoft.com/en-us/archive/blogs/matt-harrington/how-to-fix-node-js-npm-permission-problems

Permissions is hard to debug, might be an updated node version without proper access rights to the directory (for npm).

  • SR Jan 28 2021 at 19:47
    Thanks @Pawel - if it happens again I'll try this.
Please sign in or fill up your profile to answer a question