在使用node的时候,用npm安装了很多软件,过一段时间没有使用就会忘记,怎么查看自己全局安装过的包,用命令
npm list -g –depth 0
在百度里搜不到结果的,我在google里老外的文章里看到的上面的命令,写篇文章记录一下
命令运行的截图
npm list -g –depth 0
-g: 全局的安装包
list:已安装的node包
–depth 0:这个参数我就不清楚了,可能是深度0,搜了一下没有找到解释
缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia根目录)执行以下命令:
npm i hexo-generator-json-content --save
3、在根目录_config.yml里添加配置:
jsonContent: meta: false pages: false posts: title: true date: true path: true text: false raw: false content: false slug: false updated: false comments: false link: false permalink: false excerpt: false categories: false tags: true