반응형
ts-node 에러는 생각보다 쉽게 해결할 수 있었다.
->sh: ts-node: command not found
yarn run dev
yarn run v1.22.19
$ nodemon
[nodemon] 2.0.20
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): src/**/* .env
[nodemon] watching extensions: js,ts,json
[nodemon] starting `ts-node --transpile-only ./src/index.ts`
sh: ts-node: command not found
[nodemon] failed to start process, "ts-node --transpile-only ./src/index.ts" exec not found
[nodemon] Error
at Bus.<anonymous> (/Users/Users/dev/node_Express/node_modules/nodemon/lib/nodemon.js:158:25)
at Bus.emit (node:events:525:35)
at ChildProcess.<anonymous> (/Users/Users/dev/node_Express/node_modules/nodemon/lib/monitor/run.js:190:11)
at ChildProcess.emit (node:events:513:28)
at ChildProcess._handle.onexit (node:internal/child_process:291:12)
✨ Done in 0.62s.
아래에 명령어를 터미널에 입력해주면 해결되는 것을 확인할 수 있다.
yarn add ts-node
반응형
'node.js' 카테고리의 다른 글
[node.js] swagger api 적용 (0) | 2022.12.18 |
---|---|
[Node.js] pm2 명령어 (0) | 2022.12.17 |
[node.js] 디렉터리 구조 폴더 구조 (0) | 2022.12.16 |
[node.js] error: Cannot find module 'typescript' (0) | 2022.12.14 |
[node.js] Express 프로젝트 생성하기 mac m1. (0) | 2022.12.13 |
댓글