install hexo on ubuntu

install hexo on ubuntu


1.
sudo apt-get install nodejs
sudo apt-get install npm

print the version:
node -v
npm -v


2.
sudo npm install -g hexo-cli


3.
update nodejs version:

sudo npm install n -g
sudo n stable

sudo npm install -g hexo-cli


reference:
https://blog.csdn.net/u010277553/article/details/80938829

posted @ 2021-02-21 16:50  王阳开  阅读(2754)  评论(0)    收藏  举报