프로그래밍

Gitbook Init 오류 - cb.apply is not a function

tedhong 2023. 4. 13. 10:03

개요

  • gitbook-cli 2.3.2
  • gitbook 3.2.3
  • 위 버전에서 gitbook init 실행 시 'cb.apply is not a funtion' 에러 발생

해결방법

  • gitbook-cli 내부에 설치 된 graceful-fs 재설치
    • 터미널에서 해당 라이브러리가 설치 된 경로로 이동
      C:\Users\{사용자명}AppData\Roaming\npm\node_modules\gitbook-cli\node_modules\npm\node_modules
    • graceful-fs 4.2.0 버전 설치 
      (최신 버전을 설치했으나 문제가 해결되지 않아 안정적인 버전이라고 알려진 4.2.0 을 설치했습니다.)
npm i graceful-fs@4.2.0 -s
  • gitbook init 실행

 

<end>