安裝sitemap插件時遇到found 4 low severity vulnerabilities


【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

即可

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM