가쟤의 해변일기 🐳

npm run dev 에러 | The specified module could not be found. 본문

ERROR

npm run dev 에러 | The specified module could not be found.

바닷가쟤 2023. 8. 24. 12:11

   

새로운 노트북에서 비주얼 스튜디오, 깃, 노드js를 깔고 프로젝트를 만드는데, npm run dev에서 계속 에러가 났다.

 

npm run dev

> test@1.0.0 dev     
> parcel ./index.html

Error: The specified module could not be found.       
\\?\C:\Users\user\OneDrive\Desktop\test\node_modules\@parcel\source-map\parcel_sourcemap_node\artifacts\index.win32-x64-msvc.node

모듈을 찾을 수 없다는 에러인데, 새로운 폴더 만들고 다른 컴퓨터에서 만든 프로젝트 깃허브 clone해서 해보고, 노트북 초기화도 해보고, 챗gpt에 물어봐서 하라는거 1부터 10까지 수 없이 해봤는데 실패했다... ㅋ..

사실 이걸 4일 연속으로 삽질했던 것이다....

 

결국 오늘 해결을 했다 !

 


https://stackoverflow.com/questions/69859120/the-specified-module-could-not-be-found-d-next-js-firstapp-node-modules-n

 

the specified module could not be found. \\?\d:\next.js\firstapp\node_modules\@next\swc-win32-x64-msvc\next-swc.win32-x64-msvc.n

I have installed the next.js app. When I run the command npm run dev I got this error the specified module could not be found. \?\d:\next.js\firstapp\node_modules@next\swc-win32-x64-msvc\next-swc....

stackoverflow.com

이 스택오버플로우의 도움을 받았다.

그건...

바로 새로운 노트북에 Microsoft Visual C++ 2015가 깔려있지 않았단 것...

 

https://aka.ms/vs/17/release/vc_redist.x64.exe

위 링크를 클릭해 설치를 하니.. 작동 !

에러 해결 ~!~!

728x90