创建反应应用程序时出现 JSON 错误 [英] JSON Error when create react app

查看:52
本文介绍了创建反应应用程序时出现 JSON 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试遵循 React 教程(此处:https://hackernoon.com/simple-react-development-in-2017-113bd563691f),但我不断收到 JSON 错误解析 JSON 时出错.JSON 输入意外结束."我正在使用纱线.如何修复 JSON 输入?

Trying to follow tutorial on react (Here: https://hackernoon.com/simple-react-development-in-2017-113bd563691f), but I keep getting JSON error "Error parsing JSON. unexpected end of JSON input." I'm using yarn. How do i fix the JSON input?

推荐答案

我遇到了同样的问题 &这解决了这个问题:

i faced the same issue & this solved the issue :

在终端中尝试以下命令

npm 缓存清理 --force

npm cache clean --force

解决方案参考

这篇关于创建反应应用程序时出现 JSON 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆