Skip to content

npm Install Electron Failures #577

@aaronxiong1991

Description

@aaronxiong1991

Getting the following error when try to install the electron package

Start npm install...
npm install

[email protected] postinstall C:\Users[Account]\Downloads[ProjectName]\obj\Host\node_modules\electron
node install.js

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: []
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions