diff --git a/content/20240407155359 nodejs npmを Raspberry piにインストール.md b/content/20240407155359 nodejs npmを Raspberry piにインストール.md index abb481e..5ba7fa2 100644 --- a/content/20240407155359 nodejs npmを Raspberry piにインストール.md +++ b/content/20240407155359 nodejs npmを Raspberry piにインストール.md @@ -2,6 +2,13 @@ #nodejs #raspberrypi #npm aptでインストールするとバージョンが古い。 - +下記に書いてあるとおりの作業をした。 +``` +$ sudo apt install -y nodejs npm +$ sudo npm install n -g +$ sudo n stable +$ sudo apt purge -y nodejs npm +$ sudo apt autoremove -y +``` ## Ref. - [【2023年4月版】Ubuntu に node.js と npm を入れたい(バージョン管理も) #Node.js - Qiita](https://qiita.com/nouernet/items/d6ad4d5f4f08857644de)