Windows Build ENOENT Error (copying directories)
See original GitHub issueHi, I’m trying to build my app for windows from a mac. These are my scripts, the Electron-packager version is 4.1.2:
"build-mac": "electron-packager ./ MyApp --platform=darwin --arch=x64 --version=0.28.1"
"build-win": "electron-packager ./ MyApp --platform=win32 --arch=x64 --version=0.28.1"
"build-win": "electron-packager ./ MyApp --platform=win32 --arch=ia32 --version=0.28.1"
The build for mac goes right, contrariwise both the builds for Windows gave me this error (just change the arch with x64, I modified slightly the output by masking directory paths):
Geyser:MyApp delvedor$ npm run-script build-win
> myapp@3.1.0 build-win /.../.../MyApp
> electron-packager ./ MyApp --platform=win32 --arch=ia32 --version=0.28.1
Downloading electron-v0.28.1-win32-ia32.zip
[=================================================>] 100.0% of 38.79 MB (1.12 MB/s)
Packaging app for platform win32 ia32 using electron v0.28.1
[ { [Error: ENOENT, stat '/.../.../MyApp.app/Contents/Frameworks/Electron Framework.framework/Libraries/Libraries']
errno: -2,
code: 'ENOENT',
path: '/.../.../MyApp.app/Contents/Frameworks/Electron Framework.framework/Libraries/Libraries' },
{ [Error: ENOENT, stat '/.../.../MyApp.app/Contents/Frameworks/Electron Framework.framework/Versions/Current/Libraries/Libraries']
errno: -2,
code: 'ENOENT',
path: '/.../.../MyApp.app/Contents/Frameworks/Electron Framework.framework/Versions/Current/Libraries/Libraries' },
{ [Error: ENOENT, stat '/.../.../MyApp.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/Libraries']
errno: -2,
code: 'ENOENT',
path: '/.../.../MyApp.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/Libraries' } ] undefined
npm ERR! Darwin 14.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "run-script" "build-win"
npm ERR! node v0.12.0
npm ERR! npm v2.7.6
npm ERR! code ELIFECYCLE
npm ERR! myapp@3.1.0 build-win: `electron-packager ./ MyApp --platform=win32 --arch=ia32 --version=0.28.1`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the myapp@3.1.0 build-win script 'electron-packager ./ MyApp --platform=win32 --arch=ia32 --version=0.28.1'.
npm ERR! This is most likely a problem with the myapp package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! electron-packager ./ MyApp --platform=win32 --arch=ia32 --version=0.28.1
npm ERR! You can get their info via:
npm ERR! npm owner ls myapp
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /.../.../MyApp/npm-debug.log
And this is the npm-debug.log
0 info it worked if it ends with ok
1 verbose cli [ 'node', '/usr/local/bin/npm', 'run-script', 'build-win' ]
2 info using npm@2.7.6
3 info using node@v0.12.0
4 verbose run-script [ 'prebuild-win', 'build-win', 'postbuild-win' ]
5 info prebuild-win myapp@3.1.0
6 info build-win myapp@3.1.0
7 verbose unsafe-perm in lifecycle true
8 info myapp@3.1.0 Failed to exec build-win script
9 verbose stack Error: myapp@3.1.0 build-win: `electron-packager ./ MyApp --platform=win32 --arch=x64 --version=0.28.1`
9 verbose stack Exit status 1
9 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:213:16)
9 verbose stack at EventEmitter.emit (events.js:110:17)
9 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:14:12)
9 verbose stack at ChildProcess.emit (events.js:110:17)
9 verbose stack at maybeClose (child_process.js:1008:16)
9 verbose stack at Process.ChildProcess._handle.onexit (child_process.js:1080:5)
10 verbose pkgid myapp@3.1.0
11 verbose cwd /../../MyApp
12 error Darwin 14.3.0
13 error argv "node" "/usr/local/bin/npm" "run-script" "build-win"
14 error node v0.12.0
15 error npm v2.7.6
16 error code ELIFECYCLE
17 error myapp@3.1.0 build-win: `electron-packager ./ MyApp --platform=win32 --arch=x64 --version=0.28.1`
17 error Exit status 1
18 error Failed at the myapp@3.1.0 build-win script 'electron-packager ./ MyApp --platform=win32 --arch=x64 --version=0.28.1'.
18 error This is most likely a problem with the myapp package,
18 error not with npm itself.
18 error Tell the author that this fails on your system:
18 error electron-packager ./ MyApp --platform=win32 --arch=x64 --version=0.28.1
18 error You can get their info via:
18 error npm owner ls myapp
18 error There is likely additional logging output above.
19 verbose exit [ 1, true ]
Issue Analytics
- State:
- Created 8 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Windows Build ENOENT Error (copying directories) #64 - GitHub
It sounds like you need to ignore the output directories for previously generated packages. For example, add --ignore=MyApp.app .
Read more >How To Fix the “Enoent” Error? - Position Is Everything
The “enoent” can appear because of some missing files or usage of the relative path that can be solved by creating an expected...
Read more >File Copy Job in Build Process fails with "ENOENT
Although I just want to copy the file "web.config" to a folder "angular/dist", the system job fails with "Unhandled: Failed find: ENOENT: no...
Read more >node.js - ENOENT, no such file or directory - Stack Overflow
I know the file is there because when I try to open the file using the exact copied and pasted path, it works....
Read more >Learn With Me: Elixir - The File Module (#75)
The File.cp_r/3 function works just like File.cp/3 , except that it can copy directories as well as files. If the source is a...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@kylebrowning this is a different problem.
This means that you do not have Wine installed.
@malept Thanks for clarification.