You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
494B

  1. sudo apt-get install curl
  2. sudo apt-get remove nodejs npm ## remove existing nodejs and npm packages
  3. # Using Ubuntu
  4. curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
  5. curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null
  6. echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
  7. sudo apt-get update && sudo apt-get install yarn