赞
踩
Current existing ChromeDriver binary is unavailable, proceding with download and extraction. Downloading from file: https://chromedriver.storage.googleapis.com/2.46/chromedriver_linux64.zip Saving to file: /tmp/2.46/chromedriver/chromedriver_linux64.zip ChromeDriver installation failed Error with http(s) request: Error: connect ETIMEDOUT 64.233.176.207:443 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! chromedriver@2.46.0 install: `node install.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the chromedriver@2.46.0 install 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! /root/.npm/_logs/2023-10-17T09_32_01_854Z-debug.log
就是下载不下来,直接使用下面方法手动解决
npm install chromedriver --chromedriver_cdnurl=http://cdn.npm.taobao.org/dist/chromedriver
npm install --unsafe-perm npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: datachain-m@0.0.0 npm ERR! Found: prettier@2.8.8 npm ERR! node_modules/prettier npm ERR! dev prettier@"^2.8.8" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer prettier@">=3.0.0" from eslint-plugin-prettier@5.0.1 npm ERR! node_modules/eslint-plugin-prettier npm ERR! dev eslint-plugin-prettier@"^5.0.0" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. npm ERR! npm ERR! See /root/.npm/eresolve-report.txt for a full report. npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2023-10-17T02_52_13_417Z-debug-0.log
解决办法
npm install prettier --legacy-peer-deps
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。