You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ cordova build electron
[Cordova Electron] The built package size may be larger than necessary. Please run with --verbose for more details.
• electron-builder version=20.44.4
• writing effective config file=platforms/electron/build/builder-effective-config.yaml
• installing production dependencies platform=darwin arch=x64 appDir=platforms/electron/www
• packaging platform=darwin arch=x64 electron=4.0.1 appOutDir=platforms/electron/build/mac
⨯ node_modules.Dependency.Dependencies: ReadMapCB: expect { or n, but found [, error found in #10 byte of ...|cies" : [],
"repo|..., bigger context ...|g>",
"contributors" : [],
"dependencies" : [],
"repository" : {"type": "git", "url": "git|...
Error reading package.json: platforms/electron/www/node_modules/dep-graph/node_modules/underscore/package.json
Error: node_modules/app-builder-bin/mac/app-builder exited with code 1
Bug Report
Problem
cordova build electron fails with error code 1
What is expected to happen?
Build an electron app
What does actually happen?
Build exiting with error code 1
Information
$ cordova build electron
[Cordova Electron] The built package size may be larger than necessary. Please run with --verbose for more details.
• electron-builder version=20.44.4
• writing effective config file=platforms/electron/build/builder-effective-config.yaml
• installing production dependencies platform=darwin arch=x64 appDir=platforms/electron/www
• packaging platform=darwin arch=x64 electron=4.0.1 appOutDir=platforms/electron/build/mac
⨯ node_modules.Dependency.Dependencies: ReadMapCB: expect { or n, but found [, error found in #10 byte of ...|cies" : [],
"repo|..., bigger context ...|g>",
"contributors" : [],
"dependencies" : [],
"repository" : {"type": "git", "url": "git|...
Error reading package.json: platforms/electron/www/node_modules/dep-graph/node_modules/underscore/package.json
Error: node_modules/app-builder-bin/mac/app-builder exited with code 1
Command or Code
cordova build electron
Environment, Platform, Device
macOS 10.15.7
Version information
Cordova Packages:
Environment:
ios Environment:
Xcode 12.4
Build version 12D4e
Checklist
The text was updated successfully, but these errors were encountered: