diff --git a/ct/changedetection.sh b/ct/changedetection.sh index 0f13917f2..4e7de3c59 100644 --- a/ct/changedetection.sh +++ b/ct/changedetection.sh @@ -51,6 +51,7 @@ function update_script() { $STD git -C /opt/browserless/ fetch --all $STD git -C /opt/browserless/ reset --hard origin/main $STD npm update --prefix /opt/browserless + $STD npm ci --include=optional --include=dev --prefix /opt/browserless $STD /opt/browserless/node_modules/playwright-core/cli.js install --with-deps # Update Chrome separately, as it has to be done with the force option. Otherwise the installation of other browsers will not be done if Chrome is already installed. $STD /opt/browserless/node_modules/playwright-core/cli.js install --force chrome diff --git a/install/changedetection-install.sh b/install/changedetection-install.sh index 328dcfbcf..45a616c7f 100644 --- a/install/changedetection-install.sh +++ b/install/changedetection-install.sh @@ -62,8 +62,7 @@ msg_info "Installing Browserless & Playwright" mkdir /opt/browserless $STD python3 -m pip install playwright $STD git clone https://github.com/browserless/chrome /opt/browserless -$STD npm install --prefix /opt/browserless --include=dev -$STD npm install --prefix /opt/browserless typescript ts-node @types/node --save-dev +$STD npm ci --include=optional --include=dev --prefix /opt/browserless $STD /opt/browserless/node_modules/playwright-core/cli.js install --with-deps &>/dev/null $STD /opt/browserless/node_modules/playwright-core/cli.js install --force chrome &>/dev/null $STD /opt/browserless/node_modules/playwright-core/cli.js install chromium firefox webkit &>/dev/null