一:[Unexpected end of JSON input while parsing near]报错

最近的vue项目中在执行 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:Users PCAppDataRoamingnpm-cache
执行:

npm cache clean --force

4.不要用淘宝镜像。

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

参考资料:https://github.com/vuejs-temp...


二:A complete log of this run can be found in 报错

最近的vue项目中在执行 npm install 时会报错误:
通过“A complete log of this run can be found in”发现,原来是npm版本的问题,然后更新了npm版本,然后再装脚手架,就搞定了。

全局更新

npm install npm -g 

或者用淘宝镜像命令

cnpm install npm -g

最新文章

  1. python 数据类型---列表使用 之二 (增删改查)
  2. [转]Oracle Hidden Parameter:_allow_resetlogs_corruption
  3. 【转】Ubuntu 12.04 安装JDK 8和Eclipse
  4. iOS开发——UI_swift篇&TableView自定义聊天界面
  5. CQRS学习——集成ASP.NET Identity[其五]
  6. ant design 树形组件怎么使用
  7. 利用Highcharts制作web图表学习(一)
  8. 原生sql语句执行
  9. Python学习之再议row_input
  10. ES6的 let const 以及块级作用域
  11. typescript之初学习
  12. .NET Core脚本工具dotnet-script
  13. 【POJ1704】Georgia and Bob(博弈论)
  14. Java库中的集合
  15. js异步刷新局部页面
  16. php五大运行模式CGI,FAST-CGI,CLI,ISAPI,APACHE模式
  17. ORA-22858: 数据类型的变更无效 varchar2类型转换为clob类型
  18. Error after SQL Server 2012 installation: Login Failure for "SQL Server Integration Services 11.0" SSIS service
  19. (笔试题)删除K位数字
  20. usbip install

热门文章

  1. JZOJ 2020.10.6 提高B组反思
  2. 【GDOI2014模拟】JZOJ2020年8月14日提高组 服务器
  3. 【NOIP2015模拟11.4】JZOJ2020年8月6日提高组T2 最优交换
  4. 从代码角度理解NNLM(A Neural Probabilistic Language Model)
  5. PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
  6. PyQt(Python+Qt)学习随笔:QDockWidget停靠部件的dockWidgetArea和docked属性
  7. 标注工具labelimg和labelme
  8. oracle 11g调优常用语句
  9. oracle 常用语句3
  10. HW之蓝队防守