Quantcast
Channel: Node.jsタグが付けられた新着記事 - Qiita
Viewing all articles
Browse latest Browse all 9086

Node.js の再インストール

$
0
0

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 インストール」をもう一度実行して入れ直します。


Viewing all articles
Browse latest Browse all 9086

Latest Images

Trending Articles