查看當前的node npm版本?????
卸載當前已有的nodejs npm
sudo apt remove nodejs npm
安裝?Node.js
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash? -
echo "
deb https://mirrors.tuna.tsinghua.edu.cn/nodesource/deb_6.x trusty main
deb-src https://mirrors.tuna.tsinghua.edu.cn/nodesource/deb_6.x/ trusty main
" | sudo tee /etc/apt/sources.list.d/nodesource.list
上邊命令需要改成一行才能正確執(zhí)行? ?分多行是為了更好閱讀
sudo apt-get update
sudo apt-get install -y nodejs
查看當前 node npm