node.js 설치 주소 - https://nodejs.org/en/
node.js version manager
nvm 설치 주소 : https://github.com/nvm-sh/nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
설치 확인
nvm ls
3번 실행 후 nvm: command not found
같은 결과가 나올 때
bash: source ~/.bashrc
zsh: source ~/.zshrc
ksh: . ~/.profile
commnad -v nvm
nvm
이 나온다면 성공적으로 설치 완료방식은 2가지
1. npm
mkdir typescript-basic
: 폴더 생성npm init -y
: npm default settingnpm i typescript
: typescript 설치2. Visual Studio plugin 설치
tsc source.ts
"transpile": "tsc"
추가 -> 터미널에서 npm run transpile test.ts