본문 바로가기
> IT 노트/에러

[node.js] npm ERR! code ENOENT

by 자몽주스 2024. 4. 10.
728x90
반응형
npm ERR! syscall lstat  npm ERR! path C:\Users\User\AppData\Roaming\npm  npm ERR! errno -4058  npm ERR! enoent ENOENT: no such file or directory, lstat 'C: \Users\User\AppData\Roaming\npm'  npm ERR! enoent This is related to npm not being able to find a file.  npm ERR! enoent

https://www.frontoverflow.com/question/16/npx%20create-react-app%EC%9D%B4%20%EC%9E%91%EB%8F%99%ED%95%98%EC%A7%80%20%EC%95%8A%EC%8A%B5%EB%8B%88%EB%8B%A4.

 

npx create-react-app이 작동하지 않습니다. - FrontOverflow

아래와 같이 실행했는데 에러가 납니다. ```bash $ npx create-react-app my-app ``` 에러 메시지는 아래와 같습니다. ```bash npm ERR! code ENOENT npm ERR! syscall lstat npm ERR! path C:\Users\User\AppData\Roaming\npm npm ERR! errno -

www.frontoverflow.com

create-react-app을 제거했다가 다시 설치한 이후에, 해당 명령어를 실행
# create-react-app 제거 후 재설치
$ npm uninstall -g create-react-app
$ npm install -g create-react-app

# create-react-app 재실행
$ npx create-react-app my-app

https://w-world.tistory.com/341

 

npm ERR! code ENOENT 해결 방법

이번엔 npx create-react-app my-app을 실행할 때 발생하는 npm ERR! code ENOENT npm ERR! syscall lstat npm ERR! path C:... npm ERR! errno -4058 . . . 에러 해결하기! 이 경우에는 패키지 설치 과정을 넘어가서 생긴 오류일

w-world.tistory.com

npm -g uninstall create-react-app
npm -g install create-react-app
npx create-react-app my-app

 

 

위의 방법으로 해결

 

참고)

https://www.google.com/search?q=npm+err!+code+enoent&oq=&gs_lcrp=EgZjaHJvbWUqCQgAECMYJxjqAjIJCAAQIxgnGOoCMgkIARAjGCcY6gIyCQgCECMYJxjqAjIJCAMQIxgnGOoCMgkIBBAjGCcY6gIyCQgFECMYJxjqAjIJCAYQIxgnGOoCMgkIBxAjGCcY6gLSAQkxMTM2ajBqMTWoAgiwAgE&sourceid=chrome&ie=UTF-8#fpstate=ive&ip=1&vld=cid:4c3797ca,vid:s7cN3z6Gqfg,st:0

 

🔎 npm err! code enoent: Google 검색

 

www.google.com

 

728x90
반응형