秘站小记

记录,思考

安装,更新nodejs 20

默认分类 0 评
  1. sudo apt-get update && sudo apt-get install -y ca-certificates curl gnupg
  2. curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
  3. NODE_MAJOR=20
  4. echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
  1. sudo apt-get update && sudo apt-get install nodejs -y

如果出现 鉴于仓库 'https://deb.nodesource.com/node_20.x nodistro InRelease' 不支持 'i386' 体系

  1. nano /etc/apt/sources.list.d/nodesource.list
  2. 把原来的修改成 deb [signed-by=/etc/apt/keyrings/nodesource.gpg, arch=amd64] https://deb.nodesource.com/node_20.x nodistro main
  3. sudo apt-get install nodejs
搭建基于google gemini api的网页客户端