zoukankan      html  css  js  c++  java
  • create-react-app 报错 Unexpected end of JSON input while parsing near '

    按照官方文档安装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

     最后项目创建成功:

    喜欢的话,请点赞,转发、收藏、评论,谢谢!
  • 相关阅读:
    最短路小变形
    最短路
    bfs + 路径输出
    优先队列
    dijkstra
    重载运算符-operator
    最短路
    二分图匹配
    依赖型的关系建立
    string 类
  • 原文地址:https://www.cnblogs.com/johnjackson/p/10925308.html
Copyright © 2011-2022 走看看