You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Implement filesystem caching of downloaded binary
Closes#24
* Fix failure to install multiple times on Mac
* Cater for different OSs sharing node_modules
Closes#25
* Update proposed filesystem caching after feedback
* Turn caching on by default, using default filesystem locations
* `CHROMIUM_CACHE` now overrides default cache location
* Add flag `CHROMIUM_CACHE_SKIP` to disable caching
* Many little refactors as suggested
* Updated readme accordingly
* Delete temporary files when the process exits
* Refactor setEnvVar test util method
* Ask wise and all-knowing friend for cache location
* Rename CHROMIUM_CACHE to NODE_CHROMIUM_CACHE
* Update readme
* Rename cacheDir variable now cachedir is in scope
dtolstyi would never let me get away with that :)
* Rename all env vars CHROMIUM_* > NODE_CHROMIUM_*
* More resilient progress bar and rename env var
Copy file name to clipboardExpand all lines: README.MD
+32-12Lines changed: 32 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,40 +40,40 @@ npm config set https-proxy http://<username>:<password>@<the.proxy.hostname>:<po
40
40
npm config set no-proxy localhost,127.0.0.1,example.org
41
41
```
42
42
43
-
Additionally proxy settings found in the environment variables `HTTP_PROXY`, `HTTPS_PROXY` and `NO_PROXY` will be used if they are not defined in the `.npmrc` file.
43
+
Additionally proxy settings found in the environment variables `HTTP_PROXY`, `HTTPS_PROXY` and `NO_PROXY` will be used if they are not defined in the `.npmrc` file.
44
44
45
45
### Install a concrete revision
46
-
If you want to specify the revision of Chromium to be installed, just set the environment variable `CHROMIUM_REVISION` to the number of the revision you want to install, as in:
46
+
If you want to specify the revision of Chromium to be installed, just set the environment variable `NODE_CHROMIUM_REVISION` to the number of the revision you want to install, as in:
47
47
```shell script
48
-
exportCHROMIUM_REVISION=729994
48
+
exportNODE_CHROMIUM_REVISION=729994
49
49
```
50
50
51
51
Note - may also be set in .npmrc like so:
52
52
53
53
```ini
54
-
chromium_revision=729994
54
+
node_chromium_revision=729994
55
55
```
56
56
57
57
### Use a Download Mirror
58
-
You may download a specific revision from an alternate download host using the environment variable `CHROMIUM_DOWNLOAD_HOST`, for example:
58
+
You may download a specific revision from an alternate download host using the environment variable `NODE_CHROMIUM_DOWNLOAD_HOST`, for example:
* The default download host is `https://www.googleapis.com/download/storage/v1/b/chromium-browser-snapshots/o/`
71
-
* Mirrors are expected to host binaries in the structure: `<CHROMIUM_DOWNLOAD_HOST>/<PLATFORM_ARCHITECTURE>/<REVISION>/<OS_CHROMIUM_FILE_NAME>.zip?alt=media` for example see the taobao mirror [chromium-browser-snapshots](https://npm.taobao.org/mirrors/chromium-browser-snapshots/).
71
+
* Mirrors are expected to host binaries in the structure: `<NODE_CHROMIUM_DOWNLOAD_HOST>/<PLATFORM_ARCHITECTURE>/<REVISION>/<OS_CHROMIUM_FILE_NAME>.zip?alt=media` for example see the taobao mirror [chromium-browser-snapshots](https://npm.taobao.org/mirrors/chromium-browser-snapshots/).
0 commit comments