728x90
구글링을 해보니 경로 문제라고 한다.
나는 경로 확인을 해봐도 잘 되어 있었는데, 그래도 경로 문제라고 하니 파일을 다시 만들어서 똑같은 내용을 복사한 후 터미널에 실행해보았다.
정상적으로 잘 된다...
👌 해결 방법 : 파일 다시 만들기(경로 문제)
기존 오류 코드
PS C:\Users\**운\Desktop\javascript> node class.js node:internal/modules/cjs/loader:936 throw err; ^ Error: Cannot find module 'C:\Users\**운\Desktop\javascript\class.js' at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15) at Function.Module._load (node:internal/modules/cjs/loader:778:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12) at node:internal/main/run_main_module:17:47 { code: 'MODULE_NOT_FOUND', requireStack: [] } |
728x90
'제니의 개발일지 > 도움이 되었던 것 정리' 카테고리의 다른 글
Module not found: Error: Can't resolve '@mui/icons-material' (0) | 2022.08.03 |
---|---|
error create@0.0.2: The engine "node" is incompatible with this module 오류 해결방법 (0) | 2022.07.29 |
$(document).ready(function(){}) 이 뭘까? (0) | 2022.07.12 |
AttributeError: 'str' object has no attribute 'decode' 오류 해결방법 (0) | 2022.07.12 |
항해99 Git 공부 1주차 (0) | 2022.07.10 |