Error:
At first, I thought it was a node or NPM version problem. After a long time, I finally solved it
Solution:
If you have executed NPM install
, delete the node first_ Modules folder, otherwise an error may be reported when running
Execute the following command
npm install chromedriver --chromedriver_cdnurl=http://cdn.npm.taobao.org/dist/chromedriver
Then execute NPM install
to download normally
Analysis:
After analysis, it is found that in some versions, the response of the URL of the zip file of chromedriver is 302 jump, while the get method of the built-in HTTP object of node.js is used in install.js, which cannot handle 302 jump; In other cases, it’s because Google apis.com is blocked. Even if we use scientific Internet access, we still can’t get the files
Reference:
https://segmentfault.com/a/1190000008310875
https://www.npmjs.com/package/chromedriver
Similar Posts:
- Root permission NPM global installation (- G) will still have insufficient permissions. Please know the parameter unsafe perm
- Solve the chrome driver error original error: Chrome not reachable
- Mac environment and python + selenium environment are built to solve the error reporting problem of chromedriver
- NPM Error: npm ERR! 426 Upgrade Required [How to Solve]
- Python crawling picture prompt urllib.error.httperror: http error 403: forbidden solution
- [Solved] Appium Error: selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Can’t stop process; it’s not currently runni…
- [Solved] webview Switch Error: Failed to start Chromedriver session: Failed to get sockets matching: @weblayer_devtools_remote_.*4738
- The differences between response. Getwriter(). Write() and response. Getwriter(). Print(), as well as pritwriter object and out object
- [Solved] QT Error: error: undefined reference to ‘vtable for XXX’
- How to Use awk to Analyze Nginx Log