Windowsでは、Chromeの新しいヘッドレスオプションを利用するようにChromeDriverを更新しようとしています。ただし、ChromeDriverは、アップデートが完了すると直ぐに元のバージョンに戻ります。どのようにChromeDriver for Windowsをアップデートしますか?
コンソールログの下のコマンドプロンプトでは、私がバージョン2.33をダウンロードしたのを見ることができますが、最終的には2.27になります。ヘッドレスChromeを使用するには少なくとも2.29必要です。
C:\WINDOWS\system32>npm uninstall chromedriver
- [email protected] node_modules\globby\node_modules\pify
- [email protected] node_modules\globby
- [email protected] node_modules\isarray
- [email protected] node_modules\minimist
- [email protected] node_modules\extract-zip\node_modules\mkdirp
- [email protected] node_modules\ms
- [email protected] node_modules\debug
- [email protected] node_modules\p-map
- [email protected] node_modules\pend
- [email protected] node_modules\fd-slicer
- [email protected] node_modules\pify
- [email protected] node_modules\process-nextick-args
- [email protected] node_modules\string_decoder
- [email protected] node_modules\typedarray
- [email protected] node_modules\util-deprecate
- [email protected] node_modules\readable-stream
- [email protected] node_modules\concat-stream
- [email protected] node_modules\yauzl
- [email protected] node_modules\del
- [email protected] node_modules\extract-zip
- [email protected] node_modules\kew
- [email protected] node_modules\mkdirp
- [email protected] node_modules\chromedriver
npm WARN enoent ENOENT: no such file or directory, open 'C:\WINDOWS\system32\package.json'
npm WARN system32 No description
npm WARN system32 No repository field.
npm WARN system32 No README data
npm WARN system32 No license field.
C:\WINDOWS\system32>npm install chromedriver
> [email protected] install C:\WINDOWS\system32\node_modules\chromedriver
> node install.js
Downloading https://chromedriver.storage.googleapis.com/2.33/chromedriver_win32.zip
Saving to C:\Users\vadmin\AppData\Local\Temp\chromedriver\chromedriver_win32.zip
Received 781K...
Received 1568K...
Received 2352K...
Received 3136K...
Received 3920K...
Received 4125K total.
Extracting zip contents
Copying to target path C:\WINDOWS\system32\node_modules\chromedriver\lib\chromedriver
Done. ChromeDriver binary available at C:\WINDOWS\system32\node_modules\chromedriver\lib\chromedriver\chromedriver.exe
C:\WINDOWS\system32
`-- [email protected]
+-- [email protected]
| +-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| `-- [email protected]
+-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | `-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| `-- [email protected]
| `-- [email protected]
| `-- [email protected]
+-- [email protected]
`-- [email protected]
`-- [email protected]
npm WARN enoent ENOENT: no such file or directory, open 'C:\WINDOWS\system32\package.json'
npm WARN system32 No description
npm WARN system32 No repository field.
npm WARN system32 No README data
npm WARN system32 No license field.
C:\WINDOWS\system32>npm update chromedriver
C:\WINDOWS\system32>chromedriver -version
ChromeDriver 2.27.440174 (e97a722caafc2d3a8b807ee115bfb307f7d2cfd9)
C:\WINDOWS\system32>
私は間違っている/紛失していますか?