RaspberryPi install NodeJs 6.x / 7.x - 如何在RaspberryPi 安裝 NodeJs
RaspberryPi install NodeJs 6.x / 7.x – 如何在RaspberryPi 安裝 NodeJs
今日嘗試在RaspberryPi上安裝Johnny-Five /CylonJs 時出現NodeJs 的版本問題 但是執行
sudo apt-get install node
他說 NodeJs已經安裝了
做了一會research 之後 發現我們可以使用以下方法來更新這個NodeJs的
解決方法 我𠍒可以在Terminal 上執行以下command NodeJs 6.x
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - sudo apt-get install -y nodejs
NodeJs 7.x
curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash - sudo apt-get install -y nodejs
完成後再次執行
View On WordPress










