# installs NVM (Node Version Manager) curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash # download and install Node.js nvm install 20 # verifies the right Node.js version is in the environment node -v # should print `v20.11.1` # verifies the right NPM version is in the environment npm -v # should print `10.2.4`
# change version # nvm install 12 # nvm use 12
安装 hexo
1
sudo npm install hexo-cli -g
初始化博客
1 2 3
mkdir blog # create the blog folder cd blog hexo init