React를 위해 Node.js를 깔고 powershell로 npm 통해 프로젝트를 create 하려고 했으나 error -4058 발생
npm ERR! code ENOENT
npm ERR! syscall lstat
npm ERR! path C:\Users\seoia\AppData\Roaming\npm
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, lstat 'C:\Users\seoia\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\seoia\AppData\Local\npm-cache\_logs\2024-03-07T13_06_23_721Z-debug-0.log
C:\Users\seoia\AppData\Roaming\npm 이 파일을 찾을 수 없다는 내용의 에러인데, 자동 생성 되었어야 하는 npm 파일이 생성되지 않은듯
googling을 통해 수동으로 생성해도 문제 없음을 확인하여 폴더 생성하여 에러 해결
출처
https://velog.io/@jhcha/typescript-npm-ERR-path-%EC%97%90%EB%9F%AC-%ED%95%B4%EA%B2%B0
https://codingapple.com/forums/topic/%EC%84%A4%EC%B9%98-%EC%98%A4%EB%A5%98/