728x90
문제상황:
gatsby-cli 를 설치 확인 후 ,
gastby new 실행안되고 gatsby command not found 라는 오류가 났다.
해결 방법:
1. npm path prefix를 제거 후 , '/usr/local'로 세팅해준다.
npm config delete prefix
npm config set /usr/local
2. sudo를 붙여서 gatsby-cli를 global로 다운받는다.
sudo npm install -g gatsby-cli
3.잘 다운받아졌는지 버젼 확인!
gatsby -v
'코딩' 카테고리의 다른 글
MDX (0) | 2023.01.12 |
---|---|
gastby (0) | 2023.01.09 |
Command terminated with exit status 1 에러 해결 (0) | 2022.12.16 |
useEffect refetch (0) | 2022.11.18 |
framer-motion | custom, mode="wait" (0) | 2022.11.09 |