【small-debug】
安裝sitemap插件時遇到found 4 low severity vulnerabilities
正在安裝sitemap插件
正在安裝sitemap插件
npm install hexo-generator-sitemap --save 適合提交給谷歌搜素引擎
npm install hexo-generator-baidu-sitemap --save 適合提交百度搜索引擎
出現:
npm ERR! code EAUDITNOPJSON
npm ERR! audit No package.json found: Cannot audit a project without a package.json
原因是沒有package. json文件,那就新建一個
npm init --yes
解決后重新輸入安裝插件的命令
出現
found 1 low severity vulnerability
run `npm audit fix` to fix them, or `npm audit` for details
輸入
npm audit fix
即可