Skip to content

Commit 1a1a5f0

Browse files
committed
rough script for deleting stale node versions via nvm
1 parent eec93f2 commit 1a1a5f0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

purge-nodes

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/zsh
2+
3+
local versions=( $(nvm ls | grep -v 'v20.12.0\|v18.20.0' | grep -Eo 'v[0-9]+\.[0-9]+\.[0-9]+' | xargs) )
4+
for version in "${versions[@]}"; do
5+
nvm uninstall $version
6+
done
7+

0 commit comments

Comments
 (0)