inflearn logo
강의

Course

Instructor

[React Part 1] Learning React by Building and Comparing

[Pure JS 1] Folder Structure

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

470

devocean

3 asked

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 상기 에러메세지가 발생하는데, 혹시 어떻게 해결할 수 있을까요?

react mvc

Answer 2

1

grooveturtle290048

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

 

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


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

0

jeonghwan

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

1

jeonghwan

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

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

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

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

cd 1-vanilla
npx lite-server

 

0

sung5014194

안녕하세요. 저도 동일한 문제로 알려주신 방법으로 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


0

jeonghwan

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

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

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

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

리액트 1,2부 이후 후속 강의나 준비 중인 다른 강의가 있으신가요?

1

90

2

super.show() 호출하는 이유가 궁금합니다.

1

81

2

class와 constructor를 이용한 객체 지향 프로그래밍

0

224

2

mvc 패턴 질문

0

197

2

Cannot read properties of undefined (reading 'props')

0

270

2

delegate, emit 필요한 이유

0

196

2

어떤거를 먼저 들어야 하는지 도와주세요

1

265

1

localhost:8080 접속 불가

1

281

1

최근검색어 3 풀이에서

1

188

1

import 문제

1

231

1

자동변환 관련

1

203

1

sort() 질문 드립니다.

1

304

2

reset 시점에 searchResult 빈 배열로 update

2

311

2

Button에 Onclick사용

1

247

1

node 20이상 쓸때 꿀팁

4

758

3

디버깅 관련질문이 있습니다.

1

295

1

[순수JS2]탭 3(풀이) 질문있습니다.

1

229

1

추상화를 어떻게 받아들이면 될까요??

1

435

1

[검색폼 1] View.js 파일 질문과 학습 질문

1

329

1

on 메서드 eventName 문의

1

266

1

import에 관해서 질문드립니다

1

254

1

view.js의 on 메소드에 대해 질문드립니다

1

258

1

componentDidMount에서 getKeywordList()를 하는 이유

1

240

1

[순수JS1]검색폼2_git branch 이동관련

1

279

1