メモです。
# Node.jsのインストール
## nvm (バージョン管理ツール)インストール
```
$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash
$ source ~/.bashrc
```
## nvm のバージョン確認
```
$ nvm -v
0.39.2
```
## nodeのインストール
```
$ nvm install node
Downloading and installing node v19.1.0...
Downloading https://nodejs.org/dist/v19.1.0/node-v19.1.0-linux-x64.tar.xz...
################################################################################################################# 100.0%
Computing checksum with sha256sum
Checksums matched!
Now using node v19.1.0 (npm v8.19.3)
Creating default alias: default -> node (-> v19.1.0)
$ node -v
v19.1.0
```
# TypeScriptをインストール
```
$ npm install -g typescript
added 1 package, and audited 2 packages in 6s
found 0 vulnerabilities
npm notice
npm notice New major version of npm available! 8.19.3 -> 9.1.2
npm notice Changelog: https://github.com/npm/cli/releases/tag/v9.1.2
npm notice Run npm install -g npm@9.1.2 to update!
npm notice
$ tsc -v
Version 4.9.3
$ npm install -g npm@9.1.2
removed 14 packages, changed 73 packages, and audited 223 packages in 2s
14 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
$ npm -v
9.1.2
```
# 参考