首先npm i install hexo-cil会报错,但这个错误无关紧要
NIKI@DESKTOP-P1RG672 MINGW64 /d/Archer
$ npm i hexo-cli -g
npm WARN rm not removing C:\Users\NIKI\AppData\Roaming\npm\hexo.cmd as it wasn't installed by C:\Users\NIKI\AppData\Roaming\npm\node_modules\hexo-cli
npm WARN rm not removing C:\Users\NIKI\AppData\Roaming\npm\hexo as it wasn't installed by C:\Users\NIKI\AppData\Roaming\npm\node_modules\hexo-cli
C:\Users\NIKI\AppData\Roaming\npm\hexo -> C:\Users\NIKI\AppData\Roaming\npm\node_modules\hexo-cli\bin\hexo
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules\hexo-cli\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"ia32"})
只要输入hexo -v,那么hexo即是安装成功的。