📜  如何安装 npm 和 node js ubuntu - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:19.050000             🧑  作者: Mango

代码示例4
sudo apt-get install curl
curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash -
sudo apt-get install nodejs
# Check node version
node -v 
# v15.14.0
# Also, check the npm version
npm -v 
# 7.7.6