프로그래밍/에러가 났을때

errno -4058 ENOENT: no such file or directory, lstat his is related to npm not being able to find a file.

개발자 덕구🐾 2024. 8. 28. 22:06
728x90

 

 

 

이 문제는 npx create-next-app 을 실행하려다 발생하였다. 

 

 

아마 node.js 버젼문제 인것같은데 

삭제했다가 다시 깔아도 문제가 해결되지않았다. 

 

 

그러다 쉽게 문제가 해결되었다.

 

https://github.com/npm/cli/issues/6971

 

[BUG] npm ERR! enoent ENOENT: no such file or directory, lstat 'C:\Users\userName\AppData\Roaming\npm' · Issue #6971 · npm/cli

Is there an existing issue for this? I have searched the existing issues This issue exists in the latest npm version I am using the latest npm Current Behavior When "npm install" runs on pipeline s...

github.com

 

 

 

 

 

-> C/users/<username>/appData/Roaming에 

npm이라는 폴더를 만들어주면 된다!! 

 

 

 

 

 

 

 

이제 잘 되네요~ 

 

반응형