TypeError: The "code" argument must be of type number. Received type string ('SIGINT')
|2024. 5. 10. 20:45
ctrl + c 를 통해 앱을 종료할 때 에러가 발생했다.
TypeError: The "code" argument must be of type number. Received type string ('SIGINT')
at process.set [as exitCode] (node:internal/bootstrap/node:123:9)
at process.exit (node:internal/process/per_thread:177:24)
at process.<anonymous> (C:\Users\장준영\Desktop\코딩\onBooth\onbooth-admin-backend-nest\node_modules\@prisma\client\runtime\library.js:99:2170)
at Object.onceWrapper (node:events:635:26)
at process.emit (node:events:520:28)
at process.emit (C:\Users\장준영\Desktop\코딩\onBooth\onbooth-admin-backend-nest\node_modules\source-map-support\source-map-support.js:516:21)
어차피 끌때 문제기때문에 알아볼까 고민하다가 나중에 어떤 문제가 발생할지 몰라서 알아봤다.
node.js 특정버전들에서 발생하는 에러였다.
https://github.com/coreybutler/nvm-windows에서 nvm을 설치 후
nvm list
를 치면 node 버전이 나온다.
nvm use 버전
으로 버전을 18.12.0버전으로 변경하니 해당 에러가 사라졌다.
'에러 모음' 카테고리의 다른 글
[Error] "sh: react-scripts: command not found" (1) | 2024.09.25 |
---|---|
백준 runtime error/error: ENOENT: no such file or directory (0) | 2024.05.06 |
[Error] Postgre install error (0) | 2024.05.01 |
[Error] Option '--resolveJsonModule' cannot be specified without 'node' module resolution strategy. (0) | 2024.03.11 |
[NestJS] req undefined (0) | 2024.02.23 |