更换hexo主题
从yilia换到matery
所有大写在github page会出现错误,所以更改名称
cd themes;
git clone https://github.com/blinkfox/hexo-theme-matery.git;
添加npm包
npm i -S hexo-prism-plugin;
npm install hexo-generator-search --save;
npm i hexo-permalink-pinyin --save;
npm i --save hexo-wordcount;
更新hexo的包
之前的包还是两年前的,用npm进行更新
npm install -g npm-check
npm-check
npm install -g npm
npm install -g npm-upgrade
npm-upgrade
npm update
rm -rf node_modules && npm install --force
国内源不可audit,
npm ERR! code ENOAUDIT
npm ERR! audit Your configured registry (https://registry.npm.taobao.org/) does not support audit requests.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-08-15T15_40_57_743Z-debug.log
换回去
npm config set registry https://registry.npmjs.org
npm audit
npm audit fix