Last active
September 25, 2023 09:36
-
-
Save AirStair/9c0696b0e3ce99f214b3e2214ab197d4 to your computer and use it in GitHub Desktop.
alpine_linux/install/nodejs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://unofficial-builds.nodejs.org/download/release/node-vx.x.x-linux-x64-musl.tar.xz | |
rm /usr/bin/node | |
rm /usr/bin/npm | |
rm /usr/bin/npx | |
rm -r /usr/include/node | |
rm -r /usr/lib/node_modules | |
rm -r /usr/share/doc/node | |
rm /usr/share/man/man1/node.1 | |
rm /usr/share/systemtap/tapset/node.stp | |
cp -r node$1/bin/* /usr/bin | |
cp -r node$1/include/* /usr/include | |
cp -r node$1/lib/* /usr/lib | |
cp -r node$1/share/* /usr/share | |
node -v | |
npm -v |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment