解决npm ERR!
2024-10-21 07:54:24
一:[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
最新文章
- python 数据类型---列表使用 之二 (增删改查)
- [转]Oracle Hidden Parameter:_allow_resetlogs_corruption
- 【转】Ubuntu 12.04 安装JDK 8和Eclipse
- iOS开发——UI_swift篇&;TableView自定义聊天界面
- CQRS学习——集成ASP.NET Identity[其五]
- ant design 树形组件怎么使用
- 利用Highcharts制作web图表学习(一)
- 原生sql语句执行
- Python学习之再议row_input
- ES6的 let const 以及块级作用域
- typescript之初学习
- .NET Core脚本工具dotnet-script
- 【POJ1704】Georgia and Bob(博弈论)
- Java库中的集合
- js异步刷新局部页面
- php五大运行模式CGI,FAST-CGI,CLI,ISAPI,APACHE模式
- ORA-22858: 数据类型的变更无效 varchar2类型转换为clob类型
- Error after SQL Server 2012 installation: Login Failure for ";SQL Server Integration Services 11.0"; SSIS service
- (笔试题)删除K位数字
- usbip install
热门文章
- JZOJ 2020.10.6 提高B组反思
- 【GDOI2014模拟】JZOJ2020年8月14日提高组 服务器
- 【NOIP2015模拟11.4】JZOJ2020年8月6日提高组T2 最优交换
- 从代码角度理解NNLM(A Neural Probabilistic Language Model)
- PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
- PyQt(Python+Qt)学习随笔:QDockWidget停靠部件的dockWidgetArea和docked属性
- 标注工具labelimg和labelme
- oracle 11g调优常用语句
- oracle 常用语句3
- HW之蓝队防守