这两天执行 npm install 时会报错误:

npm ERR! Unexpected end of JSON input while parsing near
这个错误的解决方法有以下几种:

1.删掉package.lock.json

2.清除cache

npm cache clean --force
3.进入下面这个文件夹清除cache
路径:C:UsersPCAppDataRoamingnpm-cache
执行:

npm cache clean --force
4.不要用淘宝镜像。

npm set registry https://registry.npmjs.org/

转载于:https://www.cnblogs.com/dunke/p/10465090.html

解决npm ERR! Unexpected end of JSON input while parsing near的方法汇总相关推荐

  1. 解决npm ERR! Unexpected end of JSON input while parsing near...的方法

    今天在创建项目的时候,发现一直创建不成功,安装项目依赖的时候报错:npm ERR! Unexpected end of JSON input while parsing near- 具体报错详情: 经 ...

  2. 解决npm ERR! Unexpected end of JSON input while parsing near问题

    之前在用node.js下art-template的时候发现报了错,就是npm ERR! Unexpected end of JSON input while parsing near这个错误,因为错误 ...

  3. npm ERR! Unexpected end of JSON input while parsing near '...Comment: https://open'

    今天在安装依赖包的时候老报错,报错如下: npm ERR! Unexpected end of JSON input while parsing near '...Comment: https://o ...

  4. npm ERR! Unexpected end of JSON input while parsing near '...on:0.10.3,direc to'

    错误描述 在执行: vue create my-app 时报错 解决 打开cmd,输入: npm cache clean --force 忽略警告,重启cmd即可

  5. npm报错:npm ERR! Unexpected end of JSON input while parsing near '...:699f0881bb7f461113

    背景: 解决方法: 先清除缓存,再重新安装 清除缓存:运行 npm cache clean --force 重新安装: npm install PS: 如果执行失败,请先升级npm,即npm i -g ...

  6. 安装npm报错npm ERR! Unexpected end of JSON input while parsing nea

    npm cache clean --force 用这个清除缓存,问题得到解决

  7. npm ERR! Unexpected end of JSON input while parsing near ‘...0\npHU7A0Ut3ZBPSm7Qit‘

    网络问题 1.检查npm源是不是淘宝镜像 npm config list 2.检查自己的网络,是不是开了小飞机啥的,记得关掉

  8. npm 出现Unexpected end of JSON input while parsing near错误解决方法

    npm install 的时候出现错误: npm ERR! Unexpected end of JSON input while parsing near '...","webpa ...

  9. $ npm install时候报出:npm ERR! Unexpected token in JSON at position 10841

    $ npm install npm ERR! Unexpected token < in JSON at position 10841 解决方法: 查看项目的package-lock.json文 ...

最新文章

  1. 你说 Arthas 诊断问题不好用?watch 命令了解多少?
  2. python入门——条件语句、for、while循环4
  3. sigterm信号_Golang之信号处理(Signal)
  4. 关于java的响应式编程框架----SpringReactor
  5. 转先验概率、最大似然估计、贝叶斯估计、最大后验概率
  6. 基于S3C2440的U-BOOT的start.S分析
  7. 公司的个性制度与团队精神
  8. spring-boot启动失败 Unregistering JMX-exposed beans on shutdown
  9. linux给命令起别名命令,alias命令 – 设置命令别名
  10. 魔兽世界 助手 无法连接服务器,魔兽世界助手8.1无法登陆
  11. Hadoop常见命令 完整版
  12. Boost.Asio使用总结
  13. Just Speak 论文精读
  14. 【转】深入浅出的讲解傅里叶变换(真正的通俗易懂)
  15. AOP-Chap27-Balanced BSTs
  16. matlab cftool光滑曲线导出为什么就不光滑了_不会吧,还有人不知道MATLAB这8个小技巧?...
  17. 《从零开始的 RPG 游戏制作教程》第十五期:地图发布,以及再见
  18. 米家app扫描不到石头机器人_12月米家剁手清单,第二款冬天必备!
  19. 爬壁机器人外文文献_仿生爬壁机器人的研究现状
  20. manjaro折腾手记

热门文章

  1. Go-使用wmi获取硬盘smart信息并解析
  2. 5700: 还钱问题
  3. SIMCOM AT指令大全
  4. 秒杀竞拍屡创网络神话:馅饼还是美丽陷阱
  5. Java面试题及答案整理-肝天-肝帝-干面试管~
  6. FBX SDK快速简笔(基本)
  7. CSS实现文字凹凸效果
  8. 使用markman助力移动应用开发
  9. TiDB监控pd面板显示:Region Health: empty-regin-count很多,怎么回收empty-regin?
  10. POI导出多个Excel文件,生成压缩文件