반응형
250x250
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- VPN
- docker
- Spring Error
- chartjs
- codepipeline
- aws
- 도커
- AWS CI/CD 구축하기
- codedeploy
- or some instances in your deployment group are experiencing problems.
- IntelliJ
- Spring
- COALESCE
- Jenkins
- java bigdecimal
- kubeflow
- bootstrap
- SQL
- chart.js
- aws cicd
- node
- codedeploy error
- Flux
- PostgreSQL
- codebuild
- JavaScript
- Airflow
- Python
- redis
- Kafka
Archives
- Today
- Total
Small Asteroid Blog
typescript 설치 및 환경설정 본문
728x90
타입스크립트 설치하기
npm install -g typescript
버전확인하기
tsc -v
패키지를 생성하기위해 아래 명령어를 사용한다.
package.json 과 tsconfig.json이 생성된다.
npm init -y
tsc -- init
express 설치한다.
npm install express
데브 의존성, 노드몬 설치
npm i -D typescript ts-node nodemon @types/node @types/express
아래 사이트에서 @types 를 검색해서 사용하면 된다
https://www.typescriptlang.org/dt/search?search=
Search for typed packages
Find npm packages that have type declarations, either bundled or on Definitely Typed.
www.typescriptlang.org
프로젝트 수정 후 빌드 후 시작
npm run build
npm run start
728x90
반응형
'백엔드 > Node.js' 카테고리의 다른 글
window yarn 설치 (0) | 2021.12.10 |
---|---|
[nodejs] error cannot find module 'config' (0) | 2021.12.09 |
[nodejs] nodemailer (0) | 2021.04.02 |
node.js 프로젝트 만들기 환경설정 및 설치 (0) | 2020.08.12 |
노드 사용시 초기 설정과 설치 파일 ( node init, install ) (0) | 2020.08.05 |