node-chromedriver: Error when trying to download chromedriver binary
I’m not sure if this error is related to node-chromedriver or the binary itself but when downloading it manually the binary seems to work as expected:
ChromeDriver binary exists. Validating...
Current existing ChromeDriver binary is unavailable, proceding with download and extraction.
Downloading from file: https://chromedriver.storage.googleapis.com/LATEST/chromedriver_win32.zip
Saving to file: C:\temp\chromedriver\chromedriver_win32.zip
Received 0K total.
Extracting zip contents
ChromeDriver installation failed Error extracting archive: Error: end of central directory record signature not found
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 17 (8 by maintainers)
I had the same issue and tried the all the fixes but didn’t work. Then I updated the .npmrc with by adding this line,
chromedriver_cdnurl=https://npm.taobao.org/mirrors/chromedriverfile which is located at “C:\Program Files\nodejs\node_modules\npm\npmrc”and ran
npm update