Npm相关操作

 

gitbook install 报错TypeError: cb.apply is not a function

cd /opt/homebrew/lib/node_modules/gitbook-cli/node_modules/npm/
sudo npm install graceful-fs@latest --save

gitbook下:

cd .gitbook/versions/3.2.3/node_modules/npm
npm install graceful-fs@latest --save

Gitbook build stopped to work in node 12.18.3 · Issue #110 · GitbookIO/gitbook-cli;

node.js - Gitbook-cli install error TypeError: cb.apply is not a function inside graceful-fs - Stack Overflow;