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 package mac on windows

See original GitHub issue
  • [ x] I have read the contribution documentation for this project.
  • [x ] I agree to follow the code of conduct that this project follows, as appropriate.
  • [ x] I have searched the issue tracker for an issue that matches the one I want to file, without success.

Please describe your issue:

Cant package mac version on windows (windows package work well).

Console output when you run electron-packager with the environment variable DEBUG=electron-packager. Please include the stack trace if one exists.

$ DEBUG=electron-packager npm run package-mac

> chain@0.6.1 package-mac G:\DEV\REPO\wallet
> electron-packager . --overwrite --platform=darwin --arch=x64 --icon=assets/build/mac/icon.icns --prune=true --out=release-builds

2019-01-19T17:29:26.360Z electron-packager Electron Packager 13.0.1
Node v8.12.0
Host Operating system: win32 (x64)
2019-01-19T17:29:26.361Z electron-packager Packager Options: {"_":["."],"deref-symlinks":true,"derefSymlinks":true,"download":{"strictSSL":true,"strict-ssl":true},"prune":true,"overwrite":true,"platform":"darwin","arch":"x64","icon":"assets/build/mac/icon.icns","out":"release-builds","dir":".","protocols":[]}
2019-01-19T17:29:26.361Z electron-packager Target Platforms: darwin
2019-01-19T17:29:26.361Z electron-packager Target Architectures: x64
2019-01-19T17:29:26.377Z electron-packager Inferring application name from name in G:\WORK\DEV\REPO\wallet\package.json
2019-01-19T17:29:26.377Z electron-packager Inferring appVersion from version in G:\WORK\DEV\REPO\wallet\package.json
2019-01-19T17:29:26.380Z electron-packager Inferring target Electron version from electron in G:\WORK\DEV\REPO\wallet\package.json
2019-01-19T17:29:26.381Z electron-packager Application name: chain
2019-01-19T17:29:26.381Z electron-packager Target Electron version: 3.0.7
2019-01-19T17:29:26.381Z electron-packager Ignored path regular expressions: [ '/\\.git($|/)', '/node_modules/\\.bin($|/)', '\\.o(bj)?$' ]
2019-01-19T17:29:27.386Z electron-packager Downloading Electron with options {"strictSSL":true,"strict-ssl":true,"platform":"darwin","arch":"x64","version":"3.0.7"}
2019-01-19T17:29:27.607Z electron-packager Removing release-builds\chain-darwin-x64 due to setting overwrite: true
Packaging app for platform darwin x64 using electron v3.0.7
2019-01-19T17:29:34.751Z electron-packager Creating C:\Users\chris\AppData\Local\Temp\electron-packager\darwin-x64-template
2019-01-19T17:29:34.751Z electron-packager Extracting C:\Users\chris\AppData\Local\electron\Cache\electron-v3.0.7-darwin-x64.zip to C:\Users\chris\AppData\Local\Temp\electron-packager\darwin-x64-template
2019-01-19T17:29:36.371Z electron-packager Initializing app in C:\Users\chris\AppData\Local\Temp\electron-packager\darwin-x64\chain-darwin-x64 from C:\Users\chris\AppData\Local\Temp\electron-packager\darwin-x64-template template
2019-01-19T17:29:36.374Z electron-packager Ignored paths based on the out param: [ 'G:\\WORK\\DEV\\REPO\\wallet\\release-builds' ]
2019-01-19T17:29:52.279Z electron-packager Copying icon "assets/build/mac/icon.icns" to app's Resources as "electron.icns"
2019-01-19T17:29:52.282Z electron-packager Renaming Electron to chain in C:\Users\chris\AppData\Local\Temp\electron-packager\darwin-x64\chain-darwin-x64\Electron.app\Contents\MacOS
2019-01-19T17:29:52.284Z electron-packager Renaming Electron Helper to chain Helper in C:\Users\chris\AppData\Local\Temp\electron-packager\darwin-x64\chain-darwin-x64\Electron.app\Contents\Frameworks\Electron Helper.app\Contents\MacOS
2019-01-19T17:29:52.284Z electron-packager Renaming Electron Helper EH to chain Helper EH in C:\Users\chris\AppData\Local\Temp\electron-packager\darwin-x64\chain-darwin-x64\Electron.app\Contents\Frameworks\Electron Helper EH.app\Contents\MacOS
2019-01-19T17:29:52.284Z electron-packager Renaming Electron Helper NP to chain Helper NP in C:\Users\chris\AppData\Local\Temp\electron-packager\darwin-x64\chain-darwin-x64\Electron.app\Contents\Frameworks\Electron Helper NP.app\Contents\MacOS
2019-01-19T17:29:52.285Z electron-packager Renaming Electron Helper.app to chain Helper.app in C:\Users\chris\AppData\Local\Temp\electron-packager\darwin-x64\chain-darwin-x64\Electron.app\Contents\Frameworks
2019-01-19T17:29:52.285Z electron-packager Renaming Electron Helper EH.app to chain Helper EH.app in C:\Users\chris\AppData\Local\Temp\electron-packager\darwin-x64\chain-darwin-x64\Electron.app\Contents\Frameworks
2019-01-19T17:29:52.285Z electron-packager Renaming Electron Helper NP.app to chain Helper NP.app in C:\Users\chris\AppData\Local\Temp\electron-packager\darwin-x64\chain-darwin-x64\Electron.app\Contents\Frameworks
2019-01-19T17:29:52.292Z electron-packager Moving C:\Users\chris\AppData\Local\Temp\electron-packager\darwin-x64\chain-darwin-x64 to release-builds\chain-darwin-x64
EPERM: operation not permitted, stat 'C:\Users\chris\AppData\Local\Temp\electron-packager\darwin-x64\chain-darwin-x64\chain.app\Contents\Frameworks\Squirrel.framework\Versions\Current'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! chain@0.6.1 package-mac: `electron-packager . --overwrite --platform=darwin --arch=x64 --icon=assets/build/mac/icon.icns --prune=true--out=release-builds`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the chain@0.6.1 package-mac script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\chris\AppData\Roaming\npm-cache\_logs\2019-01-19T17_34_11_991Z-debug.log

What command line arguments are you passing? Alternatively, if you are using the API, what parameters are you passing to the packager() function?

electron-packager . --overwrite --platform=darwin --arch=x64 --icon=assets/build/mac/icon.icns --prune=true --out=release-builds

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
maleptcommented, Jan 19, 2019

I suspect this is because on Windows, you need to have administrative permissions to deal with symlinks.

Either run Electron Packager with an administrative account, or use WSL (Windows Subsystem for Linux) to run Electron Packager.

0reactions
crashbdxcommented, Jan 20, 2019

Hum ok, seem that shared folder of virtualbox dont allow symlink, will try in non shared folder then

Read more comments on GitHub >

github_iconTop Results From Across the Web

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 >
npm ERR! Error: EPERM: operation not permitted, rename
Go to the package.json file. Right-click and select Properties. In the General tab, Attributes section, deselect Read-only. Click Apply to apply the change....
Read more >
npm ERR! Error: EPERM: operation not permitted, rename
Windows : npm ERR! Error: EPERM : operation not permitted, rename [ Beautify Your Computer : https://www.hows.tech/p/recommended.html ] ...
Read more >
Installation Issue on macOS - EPERM: operation not permitted ...
Installing the JavaScript dependency of the <yfiles-package>/demos/package.json fails if the terminal does not have access to the folder.
Read more >
Mac EPERM: operation not permitted - Hackolade
Mac EPERM : operation not permitted. Starting with the release of macOS 10.15 Catalina, Apple has introduced a new security feature that ensures...
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