Failed when running make
See original GitHub issue- I have read the contribution documentation for this project.
- I agree to follow the code of conduct that this project follows, as appropriate.
- I have searched the issue tracker for an issue that matches the one I want to file, without success.
Please describe your issue:
Failed with electron-forge make
, but succeeded in electron-forge start
and electron-forge package
Console output when you run electron-forge
with the environment variable DEBUG=electron-forge:*
. (Instructions on how to do so here). Please include the stack trace if one exists.
WARNING: DEBUG environment variable detected. Progress indicators will be sent over electron-forge:lifecycle
electron-forge:lifecycle Process Started: Checking your system +0ms
electron-forge:lifecycle Process Succeeded: Checking your system +172ms
electron-forge:runtime-config setting key: verbose to value: false +15ms
WARNING: DEBUG environment variable detected. Progress indicators will be sent over electron-forge:lifecycle
electron-forge:lifecycle Process Started: Resolving Forge Config +0ms
electron-forge:project-resolver searching for project in: C:\Users\Administrator\electron\projects\spider +0ms
electron-forge:project-resolver electron-forge compatible package.json found in C:\Users\Administrator\electron\projects\spider\package.json +0ms
electron-forge:lifecycle Process Succeeded: Resolving Forge Config +16ms
We need to package your application before we can make it
electron-forge:lifecycle Process Started: Preparing to Package Application for arch: x64 +0ms
electron-forge:project-resolver searching for project in: C:\Users\Administrator\electron\projects\spider +0ms
electron-forge:project-resolver electron-forge compatible package.json found in C:\Users\Administrator\electron\projects\spider\package.json +0ms
electron-forge:packager packaging with options { asar: false,
overwrite: true,
afterCopy: [ [Function], [Function], [Function], [Function] ],
afterExtract: [],
dir: 'C:\\Users\\Administrator\\electron\\projects\\spider',
arch: 'x64',
platform: 'win32',
out: 'C:\\Users\\Administrator\\electron\\projects\\spider\\out',
electronVersion: '1.6.2',
quiet: true } +0ms
electron-forge:lifecycle Process Succeeded: Preparing to Package Application for arch: x64 +12s
electron-forge:lifecycle Process Started: Compiling Application +0ms
[BABEL] Note: The code generator has deoptimised the styling of "C:/Users/ADMINI~1/AppData/Local/Temp/electron-packager/win32-x64/spider-win32-x64/resources/app/src/app/mods/echart/echarts.min.js" as it exceeds the max of "500KB".
electron-forge:lifecycle Process Succeeded: Compiling Application +7s
electron-forge:lifecycle Process Started: Preparing native dependencies +0ms
electron-forge:lifecycle Process Succeeded: Preparing native dependencies +453ms
electron-forge:lifecycle Process Started: Packaging Application +16ms
electron-forge:lifecycle Process Succeeded: Packaging Application +13s
Making for the following targets:
electron-forge:lifecycle Process Started: Making for target: squirrel - On platform: win32 - For arch: x64 +15ms
electron-forge:require-search searching [ '../makers/win32/squirrel.js',
'../makers/generic/squirrel.js',
'electron-forge-maker-squirrel',
'squirrel',
'C:\\Users\\Administrator\\electron\\projects\\spider\\squirrel',
'C:\\Users\\Administrator\\electron\\projects\\spider\\node_modules\\squirrel',
'C:\\Users\\Administrator\\AppData\\Roaming\\npm\\node_modules\\electron-forge\\dist\\makers\\win32\\squirrel.js',
'C:\\Users\\Administrator\\AppData\\Roaming\\npm\\node_modules\\electron-forge\\dist\\makers\\generic\\squirrel.js',
'C:\\Users\\Administrator\\AppData\\Roaming\\npm\\node_modules\\electron-forge\\dist\\api\\electron-forge-maker-squirrel',
'C:\\Users\\Administrator\\AppData\\Roaming\\npm\\node_modules\\electron-forge\\dist\\api\\squirrel',
'C:\\Users\\Administrator\\electron\\projects\\spider\\squirrel',
'C:\\Users\\Administrator\\electron\\projects\\spider\\node_modules\\squirrel',
'C:\\Users\\Administrator\\AppData\\Roaming\\npm\\node_modules\\electron-forge\\dist\\api\\makers\\win32\\squirrel.js',
'C:\\Users\\Administrator\\AppData\\Roaming\\npm\\node_modules\\electron-forge\\dist\\api\\makers\\generic\\squirrel.js',
'C:\\Users\\Administrator\\AppData\\Roaming\\npm\\node_modules\\electron-forge\\dist\\api\\node_modules\\electron-forge-maker-squirrel',
'C:\\Users\\Administrator\\AppData\\Roaming\\npm\\node_modules\\electron-forge\\dist\\api\\node_modules\\squirrel',
'C:\\Users\\Administrator\\electron\\projects\\spider\\squirrel',
'C:\\Users\\Administrator\\electron\\projects\\spider\\node_modules\\squirrel' ] relative to C:\Users\Administrator\AppData\Roaming\npm\node_modules\electron-forge\dist\api +47ms
electron-forge:require-search testing ../makers/win32/squirrel.js +0ms
electron-forge:lifecycle Process Failed: Making for target: squirrel - On platform: win32 - For arch: x64 +2s
An unhandled error has occurred inside Forge:
An error occured while making for target: squirrel
Failed with exit code: 1
Output:
���ڳ��Դӡ�spider.nuspec�����ɳ�������
��·����C:\Users\Administrator\electron\projects\spider\out\spider-win32-x64\resources\app\node_modules\array-differ���ķ��ʱ��ܾ���
Error: Failed with exit code: 1
Output:
���ڳ��Դӡ�spider.nuspec�����ɳ�������
��·����C:\Users\Administrator\electron\projects\spider\out\spider-win32-x64\resources\app\node_modules\array-differ���ķ��ʱ��ܾ���
at ChildProcess.proc.on.code (C:\Users\Administrator\AppData\Roaming\npm\node_modules\electron-forge\node_modules\.2.5.2@electron-winstaller\lib\spawn-promise.js:62:16)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:886:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
What command line arguments are you passing?
electron-forge make
What does your config.forge
data in package.json
look like?
"forge": {
"make_targets": {
"win32": ["squirrel"]
},
"electronPackagerConfig": {},
"electronWinstallerConfig": {
"name": "spider"
},
"electronInstallerDebian": {},
"electronInstallerRedhat": {},
"github_repository": {
"owner": "",
"name": ""
},
"windowsStoreConfig": {
"packageName": "",
"name": "spider"
}
}
Thanks in advance !
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (4 by maintainers)
Top Results From Across the Web
Make: how to continue after a command fails? - Stack Overflow
Try the -i flag (or --ignore-errors ). The documentation seems to suggest a more robust way to achieve this, by the way: To...
Read more >Building fails when running "make" · Issue #4 - GitHub
I'm trying to build the rcssmonitor after running "./configure" but I get the following error on the ubuntu 18.04 machine I am using....
Read more >Cannot run program “\usr\bin\make” CreateProcess error=2 ...
Trying to build a makefile project running Makefile in CLion. ... Error running 'Makefile': Cannot run program "\usr\bin\make" (in directory ...
Read more >I get a fail when I run make, cannot resolve why - Super User
In first instance, try with these command for understand if the javac is really installed: java -version which java.
Read more >Error while running `make run command` - Grafana Community
Once i run 'make run' command i see below error [Bra] 08-29 22:52:10 [DEBUG] Running: go [run build.go -dev build-server] Version: 7.2.0-pre ...
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 FreeTop 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
Top GitHub Comments
I also facing this problem, and tried to re-install node_modules, but still not work, any one successfully solved this? how
@waghcwb it would help to know what the actual error is, because it sounds like it can’t find a certain binary needed for the maker you’re using, for some reason.