ubuntu16.04 部署 hexo

前端之家收集整理的这篇文章主要介绍了ubuntu16.04 部署 hexo前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

步骤

  • 安装 node.js [1]
# Using Ubuntu
 curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
 sudo apt-get install -y nodejs
  • setup npm [2]
curl -L https://www.npmjs.com/install.sh | sh
# 解决方
 npm config set user 0
 npm config set unsafe-perm true

参考

1. node.js: https://github.com/nodesource/distributions
2. nmp: https://github.com/npm/npm
3. 权限错误: https://www.cnblogs.com/lidonghao/p/3543747.html
4. hexo 环境搭建: http://www.voidking.com/2015/05/30/deve-hexo-build-environment/

猜你在找的Ubuntu相关文章