카테고리 없음

ENOENT: no such file or directory, lstat 'C:\Users\<유저명>\AppData\Roaming\npm'

rryan 2024. 1. 2. 11:31

NEXT.JS 프로젝트 시작시 npm 폴더가 없다고 나옵니다.

npx create-next-app@latest
D:\fork\projects>npx create-next-app@latest
npm ERR! code ENOENT
npm ERR! syscall lstat
npm ERR! path C:\Users\insor\AppData\Roaming\npm
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, lstat 'C:\Users\insor\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\insor\AppData\Local\npm-cache\_logs\2024-01-02T02_25_48_471Z-debug-0.log

Roaming 폴더에서 npm 폴더를 생성시 해결 할 수 있습니다.