node/tools/upgrade-npm.sh

8 lines
128 B
Bash
Executable File

#!/bin/bash
set -xe
rm -rf deps/npm
(cd deps && curl https://registry.npmjs.org/npm/-/npm-$1.tgz | tar xz && mv package npm)