Advertisement
Dyrcona

eg-node-upgrade

Oct 27th, 2019
611
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.31 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. sudo bash <<EOF
  4. cd /usr/local/bin/
  5. rm ng node npm npx
  6. cd ../lib/
  7. rm -rf node_modules/
  8. EOF
  9.  
  10. wget -N https://nodejs.org/dist/v12.13.0/node-v12.13.0-linux-x64.tar.xz
  11.  
  12. sudo bash <<EOF
  13. tar -C /usr/local --strip-components 1 -xJf node-v12.13.0-linux-x64.tar.xz
  14. npm install -g @angular/cli@^8.2.0
  15. EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement