해결된 질문
23.07.25 23:49 작성
·
810
·
수정됨
0
"C:\Program Files\nodejs\node.exe" --require ts-node/register C:/Users/mingyo/study/nodejs/ts-practice/1_basic/1_problem_with_js.ts
node:internal/modules/cjs/loader:1078
throw err;
^Error: Cannot find module 'ts-node/register'
Require stack:
- internal/preload
at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)
at Module._load (node:internal/modules/cjs/loader:920:27)
at internalRequire (node:internal/modules/cjs/loader:174:19)
at Module._preloadModules (node:internal/modules/cjs/loader:1431:5)
at loadPreloadModules (node:internal/process/pre_execution:606:5)
at setupUserModules (node:internal/process/pre_execution:118:3)
at prepareExecution (node:internal/process/pre_execution:109:5)
at prepareMainThreadExecution (node:internal/process/pre_execution:37:3)
at node:internal/main/run_main_module:10:1{
code:'MODULE_NOT_FOUND',
requireStack: ['internal/preload']
}Node.js v18.16.0
]0;C:\Program Files\nodejs\node.exe
Process finished with exit code 1
위와 같이 에러가 발생하는데 ts-node/register라는 모듈을 npm으로 설치해야 하나요?
답변 2
0
0
2023. 07. 26. 10:59
안녕하세요!
npm i -g ts-node를 실행해서 ts-node만 설치 해보시겠어요?
그래도 안되면 카카오 채널에서 원격 신청 부탁드립니다.
감사합니다!