• 카테고리

    질문 & 답변
  • 세부 분야

    프론트엔드

  • 해결 여부

    해결됨

gatsby develop 오류

22.08.09 02:10 작성 조회수 675

1

npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.

 ERROR #11903  COMPILATION

There was an unhandled error during compilation for C:/Users/user/Desktop/Git 개발 블로그/myGitBlog. Please run the command with the --verbose flag again.
Error opening directory                                       

  Error: Error opening directory

not finished compile gatsby files - 0.568s  

 

현재 이러한 오류가 발생하면서 npm start도 안되고

npm 과 node의 버전 문제인가 해서 새로 해주었고

 

갑자기 위에 사진처럼 오류가 발생하고,, gatsby-cli 설치도 안되는 상황입니다 ㅠㅠ

답변 1

답변을 작성해보세요.

1

인표님의 프로필

인표

2022.08.10

package-lock.json 파일 한번 지우고 해보실래요?

su Bae님의 프로필

su Bae

질문자

2022.08.10

네 다 지우고 node 재 설치하니 해결했습니다.