kunpengdt
故障排除
更新时间:2020/03/19 GMT+08:00
问题描述:
安装http-server过程中提示如下错误:
npm ERR! Unexpected end of JSON input while parsing near '...ect.js":"*","mocha":"' npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2019-07-04T02_59_09_022Z-debug.log
问题原因:解析其中一个json格式的缓存文件时发生错误。
解决方法:
清除缓存,重新设置npm仓库。
npm cache clean --force
npm set registry https://registry.npmjs.org/
父主题: 安装Swagger UI
