Cài theo step by step
----Chuẩn bị
- sudo apt update
- sudo apt -y install curl dirmngr apt-transport-https lsb-release ca-certificates
- curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
Trong đường link download mình muốn dùng phiên bản bao nhiêu thì thế vào chổ {version-nodejs} như ví dụ bên dưới.
-----Cài đặt
- sudo apt -y install nodejs
Ví dụ: mình muốn chạy Nodejs vesion 12 thì như sau: rồi chạy lại lệnh "cài đặt"
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
No comments:
Post a Comment