LoginSignup
0
0

More than 3 years have passed since last update.

Cloud9でTypeScriptの学習(環境構築から実行まで)

Posted at

【環境】

・cloud9
・tsc --version
Version 4.0.3
・npm --version
7.0.3
・nvm --version
0.33.0

やったこと

  • npm をインストールするために、Node Version Manager (nvm) をダウンロードする。

  • nvmとは?
    Node.js のバージョンをインストールして管理するために役立つ Bash シェルスクリプト

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash
. ~/.bashrc

nvm の使用を開始する

. ~/.bashrc

Node.js をインストールするために、nvmコマンドを実行する (npm は Node.js に含まれている)。

nvm install node

-g オプションを指定して npm を実行し、TypeScript をインストールする。
TypeScriptがグローバルパッケージとして環境にインストールされる

npm install -g typescript

image.png

image.png

image.png

image.png

学習内容とまとめ

・ファイルの作成
・コンパイル
・jsファイルの実行まで確認できた

参考記事

AWS Cloud9 の TypeScript サンプル

0
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
0
0