해결된 질문
작성
·
867
·
수정됨
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