安装nodejs
下载[nodejs官网]: https://nodejs.org/en/download/根据电脑系统、架构下载对应版本
安装解压后安装,除安装地址外、其他选项默认即可检查是否安装成功:【win+r】输入【cmd】回车(打开命令行)# 如无信息可到cd到对应安装目录执行node -v
如下输出版本号即安装成功
配置环境
到nodejs安装目录下,和node.exe同级,新建两个文件夹【node_global】和【node_cache】
以管理员身份运行cmdnpm config set prefix "刚刚创建的node_global路径"npm co
2025-03-2475 字1 分钟
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 post$ hexo new "My New Post"
More info: Writing
Run server$ hexo serve