create-react-app 报错 Unexpected end of JSON input while par
发布时间:2020-12-15 20:10:49 所属栏目:百科 来源:网络整理
导读:按照官方文档安装create-react-app后,执行npx create-react-app后报错: Unexpected end of JSON input while parsing near ...... 执行下面命令可解决 npm cache clean --force , :执行后可以用以下命令检查 npm cache verify 如果还是不行,查看一下npm
按照官方文档安装create-react-app后,执行npx create-react-app后报错: Unexpected end of JSON input while parsing near ...... 执行下面命令可解决 npm cache clean --force , :执行后可以用以下命令检查 npm cache verify 如果还是不行,查看一下npm版本,不是最新的更新一下:? npm i -g npm 再有就是试一下换npm的镜像服务器 npm config set registry http://registry.cnpmjs.org 或 npm config set registry http://registry.npmjs.org 或 npm config set registry https://registry.npm.taobao.org (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |