Skip to content

Commit 6fe739a

Browse files
committed
hold npm
1 parent c23aa4c commit 6fe739a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/ci/scripts/free-disk-space.sh

+5
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ execAndMeasureSpaceChange() {
6969
# Remove large packages
7070
# REF: https://github.com/apache/flink/blob/master/tools/azure-pipelines/free_disk_space.sh
7171
cleanPackages() {
72+
# Prevent npm from being removed.
73+
# This command unfortunately also prevents npm from being updated,
74+
# but it should be fine because we don't run `apt upgrade`.
75+
sudo apt-mark hold npm
76+
7277
sudo apt-get -qq purge -y --autoremove --fix-missing \
7378
'^aspnetcore-.*' \
7479
'^dotnet-.*' \

0 commit comments

Comments
 (0)