npm相关报错调试
背景
执行npm install命令时,卡住不动;然后执行cnpm install命令,发现有报错提示
“ RunScriptError: post install error, please remove node_modules before retry!”
解决方案
这里应该是网络不稳定造成的,所以使用如下命令即可
方案一:使用cnpm安装
1 |
|
方案二:配置代理
1 |
|
缺失模块。
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