hexo init出错

hexo init 出错

报错信息如下

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `node ./postinstall.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-03-22T12_45_40_678Z-debug.log

解决:
保持 hexo init 目录所有权和用户一致。

你可能感兴趣的:(学习)