开山篇(一)
Hexo_Blog这是一个基于Hexo的博客项目都说万事开头难,这第一步就把我难住了。明明已经安装了node.js,npm install hexo-cli -g也安装的好好的,可就在运行hexo -v检验时说没有安装,真是气得我够呛。 环境变量没搞对?我去重新安装了一下,又重新配置,解决算是……解决了吧,在管理员权限下的命令提示符(默认目录)里面运行的好好的,输入hexo -v,就显示了版本号。可我不在C:|System32目录下做项目啊,后来改了改,结果又找不到npm了! 不过我还是反思了一下,也许自己没走对过程中的某一步,才导致出现问题。所以最终石师傅决定彻底重装。教程参考知乎的这个教程,记得重启。 到跟着这个教程做完,已经过去一个小时了。 环境配置还有一步,在系统变量里面新建了NODE_PATH之后,在系统变量的Path里面添加%NODE_PATH%,然后记得重启电脑。 现在在项目路径下的终端已经可以运行npm -v了,太棒啦终于TMD弄好了😭😭😭 123456# 安装Hexonpm install -g hexo-cli# 检验安装是否成功hexo -v# ...
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick StartCreate a new post1$ hexo new "My New Post" More info: Writing Run server1$ hexo server More info: Server Generate static files1$ hexo generate More info: Generating Deploy to remote sites1$ hexo deploy More info: Deployment