Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Creates the intermediate tmp folder before attempting to copy CHROMED…
…RIVER_FILEPATH to it. Copying the binary no longer worked, unless the destination tmp folder already existed. Steps to reproduce: - rm -Rf /tmp/117.0.5938.92/chromedriver/ - CHROMEDRIVER_FILEPATH="/yourpathto/chromedriver" node node_modules/chromedriver/install.js Failed with: ``` ChromeDriver installation failed Error: ENOENT: no such file or directory, copyfile '/tmp/chromedriver' -> '/tmp/117.0.5938.92/chromedriver/chromedriver-linux64/chromedriver' at Object.copyFileSync (node:fs:2894:3) at extractDownload (/home/anastasios/Sources/cloud/web/node_modules/chromedriver/install.js:364:8) at install (/home/anastasios/Sources/cloud/web/node_modules/chromedriver/install.js:70:13) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { errno: -2, syscall: 'copyfile', code: 'ENOENT', path: '/tmp/chromedriver', dest: '/tmp/117.0.5938.92/chromedriver/chromedriver-linux64/chromedriver' } ``` After this change it succeeds.
- Loading branch information