LoginSignup
2
0

More than 3 years have passed since last update.

Node.js の再インストール

Posted at

Nodeがおかしくなった


$ node
Illegal instruction

環境

2020-02-13-raspbian-buster-lite

既存の Node.js

「Linux 環境に Node.js インストール」
https://qiita.com/nanbuwks/items/ed8adb2d4324c939a349
の通り、以下のようにインストール

1.Linux ディストリビューションの公式パッケージで Node.js と npm を入れる
2.npm install で最新の Node.js を入れる
3.古い Node.js を削除する

削除

node のインストール先を調べる
```

$ which node
/usr/local/bin/node
```

ファイル削除


$ sudo rm -rf /usr/local/bin/node
sudo rm -rf ~/.npm

削除できたかな?

$ npm
/usr/bin/env: ‘node’: No such file or directory

このあと、先の資料「Linux 環境に Node.js インストール」をもう一度実行して入れ直します。

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0