运行VUE项目时,出现npm ERR! A complete log of this run can be found in:...报错
运行VUE项目时,出现npm ERR! A complete log of this run can be found in:报错时,分享以下一种解决方案。
本机的 node版本如下
解决方法
1. 删除项目的 node_modules 依赖包
2. 执行 npm cache clean --force 清理缓存
3. 在项目文件夹下执行npm install
4.执行npm run即可
加快npm的下载速度
npm拉取依赖包需要访问国外服务器,往往速度较慢,可通过以下两种方法使用国内镜像源:
方法一:
直接安装cnpm ,并更改服务器地址为淘宝的国内地址
命令:
npm install -g cnpm --registry=https://registry.npm.taobao.org
以后安装直接采用cnpm
替代npm
, 例如原生npm命令为:npm install uniq --save
,cnpm命令为:cnpm install uniq --save
方法二:
替换npm仓库地址为淘宝镜像地址
命令:
npm config set registry https://registry.npm.taobao.org
查看是否更改成功:
npm config get registry
以后安装时,依然用npm命令,便可以由国内镜像源下载。
运行VUE项目时,出现npm ERR! A complete log of this run can be found in:...报错相关推荐
- npm ERR! A complete log of this run can be found in:
第一次接触vue项目的时候,拿了别人的代码,安装了依赖包以后一运行,发现有报错 npm ERR! A complete log of this run can be found in: npm ERR ...
- 【解决】npm ERR A complete log of this run can be found in npm ERR
有一些同学可能想配置react的运行环境,苦于不同的电脑遇到千奇百怪的问题和ERROR.下面是我遇到问题对应的解决方案,希望对你们有帮助. 本来我们的基本步骤是: 下载好nvm文件 在里面下载node ...
- npm 报错 : npm ERR! Maximum call stack size exceeded npm ERR! A complete log of this run can be found
之前,在npm下载包的时候出现一个错误: npm ERR! Maximum call stack size exceeded npm ERR! A complete log of this run c ...
- npm ERR! cb.apply is not a function npm ERR! A complete log of this run can be found in: npm ERR!
npm ERR! cb.apply is not a function npm ERR! A complete log of this run can be found in: npm ERR! C: ...
- npm ERR A complete log of this run can be found in npm ERR CUsersAppDataRoamingnpm-ca
npm ERR! A complete log of this run can be found in: npm ERR! C:Users**AppDataRoaming pm-cache_logs? ...
- 运行vue报错npm ERR! A complete log of this run can be found in解决办法
在这里我们需要清除npm的缓存: (1)在cmd命令行窗口中输入:npm cache clean --force (2)然后再运行我们需要安装模块的命令,输入npm install. 有时是网络问题, ...
- npm 报错 ERR Cannot read properties of null reading ‘package npm ERR A complete log of this run can
通过npm install 安装依赖报如下错误. 解决办法:尝试通过cnpm install 或yarn install 即可解决.
- 在运行vue项目时发生这种 Cannot find module ‘xxxxx‘ ,解决办法?
在运行vue项目时发生这种 Cannot find module 'xxxxx' ,解决办法? 首先,在文件夹中删除掉node_modules文件和package-lock.json文件 其次,在使用 ...
- Vue项目代码改进(四)—— 在使用ElementUI时点击同一个路由,页面报错
这个不可描述的问题是:在使用ElementUI时点击同一个路由,页面报错. 错误代码如下: element-ui.common.js?ccbf:3339 NavigationDuplicated {_ ...
最新文章
- 图模型+Bert香不香?完全基于注意力机制的图表征学习模型Graph-Bert
- jsp和servlet开发过程中参数传递乱码问题总结
- 企业网络推广——面对网络推广企业网站提升收录到底该怎样做?
- 基于图结构的计算分析和实现
- HTML: 字體設置
- 使用 FlipClock.js 制作精美的时钟、定时器和倒计时功能
- 初学WPF之程序启动几种方式
- 查询缺少的依赖文件归属于哪个rpm包
- Boost字符串处理
- Python实现HTTP服务器(一)
- git rebase 修改提交信息
- 学习template算法以及改进(一)
- JS框架设计之对象类型判断一种子模块
- 云上“超算中心” 阿里云推出弹性高性能计算平台E-HPC
- CUDA 和 GPU
- javaee字符缓冲输出流
- 四阶龙格库塔法求解微分方程【MATLAB】
- linux应用程序开发指南-开发工具介绍
- Phase2 Day11 Set Map
- 华为防火墙IPsec点对点配置解析
热门文章
- 手机通讯录联系人怎么恢复 快速恢复的方法
- Severance:BoD[官方英文版][资源收集分享]
- 软件测试工程师笔试题带答案(二)
- “江湖笑”-献给怀有梦想的北漂一族
- matlab中的可变电阻怎么接,可调电阻器的接线方法
- 常用电子元器件-电阻器介绍
- 树莓派初次配置C++环境以及进行简单的hcsr04驱动
- 【SwiftUI模块】0007、SwiftUI新手指引-新手指示-聚光灯介绍说明
- windows server 2012 R2 安装桌面体验,安装ActiveSync时提示缺少Windows组件
- 知乎个人创作者如何认证?附图文认证教程