gitbook安装cb.apply和token unexpect

2023-09-21  本文已影响0人  jrglinux

主要记录下遇到的两个问题:

ubuntu22.04上安装低版本nodejs
ubuntu22.04上直接用apt install nodejs安装的18版本的

sudo apt -y install curl dirmngr apt-transport-https lsb-release ca-certificates
curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash -
apt install nodejs #此时应该安装的是16
#如果要安装18
curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash -
apt install nodejs #此时应该安装的是18

然后再去注释掉cb.apply()
ubuntu上找npm安装的gitbook-cli所在位置

root@pc:~# npm root -g
/usr/lib/node_modules
上一篇 下一篇

猜你喜欢

热点阅读