electron-api-demos
electron-api-demos copied to clipboard
Errors in npm install on Windows 7
E:\dev\projects\nodeprojects\electron\electron-api-demos>npm i
[email protected] install E:\dev\projects\nodeprojects\electron\electron-api-demos\node_modul es\electron-chromedriver node ./download-chromedriver.js
E:\dev\projects\nodeprojects\electron\electron-api-demos\node_modules\electron-chromedriver\download-chro medriver.js:16 if (error != null) throw error ^
Error: self signed certificate in certificate chain
at Error (native)
at TLSSocket.
npm ERR! [email protected] install: node ./download-chromedriver.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node ./download-chromedriver.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the electron-chromedriver package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ./download-chromedriver.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs electron-chromedriver
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls electron-chromedriver
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request: npm ERR! E:\dev\projects\nodeprojects\electron\electron-api-demos\npm-debug.log
:+1: A similar error when execute npm install, the OS is windows 10, the node version is 6.9.2
C:\Users\neal1\project\electron-api-demos\node_modules.1.6.0@electron-chromedriver\download-chromedriver.js:16 if (error != null) throw error ^
Error: Generated checksum for "chromedriver-v2.21-win32-x64.zip" did not match expected checksum.
at ChecksumMismatchError.Error (native)
at ChecksumMismatchError.ErrorWithFilename (C:\Users\neal1\project\electron-api-demos\node_modules.1.3.1@sumchecker\build.js:41:124)
at new ChecksumMismatchError (C:\Users\neal1\project\electron-api-demos\node_modules.1.3.1@sumchecker\build.js:56:133)
at Hash.
My solution was to run this first.
npm config set strict-ssl false
And proceed with the normal install.
I am having the same error as @neal1991 on Windows 10
Does this still occur on recent versions?
# Error on Starting Electron-Api-Demos
PS C:\Users\UserPC\Project\Electron\electron-api-demos> npm start
[email protected] start C:\Users\UserPC\Project\Electron\electron-api-demos electron .
C:\Users\UserPC\Project\Electron\electron-api-demos\node_modules\electron\index.js:9 throw new Error('Electron failed to install correctly, please delete node_modules/electron and try installing again') ^
Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
at Object.electron .
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start 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\UserPC\AppData\Roaming\npm-cache_logs\2018-04-22T09_53_42_103Z-debug.log
@Nditah what happens when you follow the instructions?
@codebytere , I followed the instruction and its resolved. Nice !!