• 카테고리

    질문 & 답변
  • 세부 분야

    프론트엔드

  • 해결 여부

    미해결

npx lite-server error 확인 요청드립니다.

24.02.24 18:15 작성 조회수 163

1

git 프로그램에서, code 확인 후에npx lite-server --baseDir 1-vanilla 실행하면npm ERR! code ENOENTnpm ERR! syscall lstatnpm ERR! path C:\Users\ostri\AppData\Roaming\npmnpm ERR! errno -4058npm ERR! enoent ENOENT: no such file or directory, lstat 'C:\Users\ostri\AppData\Roaming\npm'npm ERR! enoent This is related to npm not being able to find a file.npm ERR! enoentnpm ERR! A complete log of this run can be found in: C:\Users\ostri\AppData\Local\npm-cache\_logs\2024-02-24T09_12_51_599Z-debug-0.log 상기 에러메세지가 발생하는데, 혹시 어떻게 해결할 수 있을까요?

답변 2

·

답변을 작성해보세요.

1

흔들거북이님의 프로필

흔들거북이

2024.03.12

동일한 문제를 겪어서 해결 방안 공유 드립니다.

 

정말 말그대로 해당 path가 없어서 발생한 오류인데요.


C:\Users\{윈도우 유저 이름}\AppData\Roaming 여기까지 탐색기 프로그램을 이용하여 들어가주신 후에 'npm' 폴더 만들어주시면 됩니다.

흔들거북이 님 공유해 주셔서 고맙습니다.

0

로그에서는 이 파일이 없다고 하네요.

  • 'C:\Users\ostri\AppData\Roaming\npm'npm

경로 관련 문제로 추측됩니다.

1-vanilla 폴더로 이동한 뒤에 서버를 실행해 보시길 바랍니다.

cd 1-vanilla
npx lite-server

 

화면초보님의 프로필

화면초보

2024.03.10

안녕하세요. 저도 동일한 문제로 알려주신 방법으로 1-vanilla 폴더로 이동 후 서버 실행했는데

똑같이 오류 발생합니다.

어떻게 해결해야 될까요?

 

bijou@DESKTOP-J472362 MINGW64 ~/lecture-react/1-vanilla (ready/scaffoding)

$ npx lite-server

npm ERR! code ENOENT

npm ERR! syscall lstat

npm ERR! path C:\Users\bijou\AppData\Roaming\npm

npm ERR! errno -4058

npm ERR! enoent ENOENT: no such file or directory, lstat 'C:\Users\bijou\AppData\Roaming\npm'

npm ERR! enoent This is related to npm not being able to find a file.

npm ERR! enoent

npm ERR! A complete log of this run can be found in: C:\Users\bijou\AppData\Local\npm-cache\_logs\2024-03-10T05_05_16_674Z-debug-0.log


npm 이 파일을 못찾는다고 하는것 같은데요.

This is related to npm not being able to find a file

혹시 노드를 다시 설치해 보실까요?

사용하신 노드 버전도 알려주시면 해결 방법을 같이 찾아 보겠습니다.