hexo 安装 发表于 2022-05-08 阅读次数: 本文字数: 804 阅读时长 ≈ 1 分钟 前提 Nodejs Git 安装1234567891011121314$ npm install hexoadded 89 packages, and audited 90 packages in 20s15 packages are looking for funding run `npm fund` for detailsfound 0 vulnerabilities$ ll总用量 68drwxr-xr-x 89 umpay umpay 4096 5月 10 20:23 node_modules-rw-r--r-- 1 root root 49 5月 10 20:23 package.json-rw-r--r-- 1 root root 61165 5月 10 20:23 package-lock.json 将 Hexo 所在的目录下的 node_modules 添加到环境变量之中即可直接使用 hexo <command>: 12$ echo PATH='"$PATH:'$(pwd)'/node_modules/.bin"' >> /etc/profile$ source /etc/profile 1234567891011121314151617181920$ hexo versionhexo-cli: 4.3.0os: linux 2.6.32-696.el6.x86_64 CentOS Linux 6 (Core)node: 16.15.0v8: 9.4.146.24-node.20uv: 1.43.0zlib: 1.2.11brotli: 1.0.9ares: 1.18.1modules: 93nghttp2: 1.47.0napi: 8llhttp: 6.0.4openssl: 1.1.1n+quiccldr: 40.0icu: 70.1tz: 2021a3unicode: 14.0ngtcp2: 0.1.0-DEVnghttp3: 0.1.0-DEV hexo 操作指北 -------- 本文结束 感谢阅读 -------- 打赏 微信支付