安装时有warning
C:\Users\twogoods>npm install -g hexo-cli
npm WARN optional dep failed, continuing fsevents@0.3.8
C:\Users\twogoods\AppData\Roaming\npm\hexo -> C:\Users\twogoods\AppData\Roaming\npm\node_modules\hexo-cli\bin\hexo
hexo-cli@0.1.8 C:\Users\twogoods\AppData\Roaming\npm\node_modules\hexo-cli
├── abbrev@1.0.7
├── minimist@1.2.0
├── tildify@1.1.0 (os-homedir@1.0.1)
├── bluebird@2.9.34
├── chalk@1.1.1 (escape-string-regexp@1.0.3, supports-color@2.0.0, ansi-styles@2.1.0, strip-ansi@3.0.0, has-ansi@2.0.0)
└── hexo-fs@0.1.4 (escape-string-regexp@1.0.3, graceful-fs@4.1.2, chokidar@1.0.5)
启动时INFO Hexo is running at http://0.0.0.0:4000/. Press Ctrl+C to stop.
浏览器输 http://0.0.0.0:4000,http://localhost:4000/都没有反应,是hexo没安装好吗?
是windows环境的话,建议直接用 netstat -ano |findstr 4000 命令查看下端口是否被占用,有占用的话杀掉进程后 ,再重新试试看。