From b1fb65513bd4c7043bbe69e7a765c08e0074d235 Mon Sep 17 00:00:00 2001 From: "Kaz Saita(raspi5)" Date: Sun, 7 Apr 2024 16:45:14 +0900 Subject: [PATCH] sync notes(auto) --- ...0407155359 nodejs npmを Raspberry piにインストール.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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)