安装fnm
curl -fsSL https://fnm.vercel.app/install | bash
安装nodejs 20.17.0LTS版本
https://nodejs.org/zh-cn/download/package-manager
安装依赖包
# Download and install nvm:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.2/install.sh | bash# in lieu of restarting the shell
\. "$HOME/.nvm/nvm.sh"# Download and install Node.js:
nvm install 22# Verify the Node.js version:
node -v # Should print "v22.14.0".
nvm current # Should print "v22.14.0".# Verify npm version:
npm -v # Should print "10.9.2".
sudo apt-get updatesudo apt-get install -y build-essential python3 g++sudo apt-get install -y libsqlite3-devsudo apt-get updatesudo apt-get install -y build-essential libvips-devnpm install sharp
npm install 3d-tiles-tools