Hexo的安装

版权声明:欢迎转载,欢迎批评,共同学习,共同进步。如果有不正确的地方,希望帮我纠正! https://blog.csdn.net/qq_33461689/article/details/87926135

这里有一篇Hexo的文档,根据文档提示,先安装Node.js和Git。

安装好Node.js和Git后,运行官网的 npm install -g hexo-cli命令开始安装。一般会没有什么问题。

但是我运行安装命令后,出现-4058错误,报错如下:

npm ERR! path C:\Users\mayn\AppData\Roaming\npm\node_modules\hexo-cli\node_modules\highlight.js\tools\build.js
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod 'C:\Users\mayn\AppData\Roaming\npm\node_modules\hexo-cli\node_modules\highlight.js\tools\build.js'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\mayn\AppData\Roaming\npm-cache\_logs\2019-02-25T14_05_39_647Z-debug.log

解决方案:

使用:npm install -g hexo-cli --ignore-scripts命令安装,但是不知道会不会有其他的影响。

到现在,hexo就安装好了。

猜你喜欢

转载自blog.csdn.net/qq_33461689/article/details/87926135