-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npm Install Electron Failures #577
Comments
Try running |
I google about this error, and try the above npm command already, does not resolve the issue |
if you are on a non windows platform put sudo npm install |
╭─[Account]@[Account]-Max.local ~/learns/electron-quick-start ‹main› npm ERR! A complete log of this run can be found in: 2023-08-26T08_10_29_099Z-debug-0.log
|
Getting the following error when try to install the electron package
Start npm install...
npm install
RequestError: unable to get local issuer certificate
at ClientRequest. (C:\Users[Account]\Downloads[ProjectName]\obj\Host\node_modules\got\source\request-as-event-emitter.js:178:14)
at Object.onceWrapper (events.js:422:26)
at ClientRequest.emit (events.js:327:22)
at ClientRequest.origin.emit (C:\Users[Account]\Downloads[ProjectName]\obj\Host\node_modules@szmarczak\http-timer\source\index.js:37:11)
at TLSSocket.socketErrorListener (_http_client.js:469:9)
at TLSSocket.emit (events.js:315:20)
at emitErrorNT (internal/streams/destroy.js:106:8)
at emitErrorCloseNT (internal/streams/destroy.js:74:3)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall:
node install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall 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[Account]\AppData\Roaming\npm-cache_logs\2022-02-04T00_18_50_759Z-debug.log
ElectronHostHook handling started...
Invoke electron.cmd - in dir: C:\Users[Account]\Downloads[ProjectName]\obj\Host\node_modules.bin
electron.cmd "....\main.js"
internal/modules/cjs/loader.js:883
throw err;
^
Error: Cannot find module 'C:\Users[Account]\Downloads[ProjectName]\obj\Host\node_modules\electron\cli.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
at Function.Module._load (internal/modules/cjs/loader.js:725:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
The text was updated successfully, but these errors were encountered: