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.

installnodejs.txt 659B

3 年之前
3 年之前
3 年之前
12345678910111213141516
  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 -y
  8. npm install
  9. npm audit fix --force
  10. cat /etc/masternodes/vivo_n1.conf | grep rpcpass
  11. nano /etc/lighttpd/lighttpd.conf
  12. /etc/init.d/lighttpd restart
  13. ufw allow 3002