首页 > 其他分享 >npm install 报错

npm install 报错

时间:2024-05-17 14:29:47浏览次数:10  
标签:npm log ERR -- 报错 install vite

一 问题

npm install 报错

 

二 解决

看报错提示内容"this command with --force or --legacy-peer-deps"

命令改成这样:npm install --force 

 

三 备注

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! node_modules/vite
npm ERR!   dev vite@"^5.0.10" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer vite@"^2.9.0 || ^3.0.0 || ^4.0.0" from [email protected]
npm ERR! node_modules/vite-plugin-enhance-log
npm ERR!   dev vite-plugin-enhance-log@"^0.5.2" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! C:\Users\Administrator\AppData\Local\npm-cache\_logs\2024-05-17T06_22_59_523Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: C:\Users\Administrator\AppData\Local\npm-cache\_logs\2024-05-17T06_22_59_523Z-debug-0.log

 

标签:npm,log,ERR,--,报错,install,vite
From: https://www.cnblogs.com/qxAndWorld/p/18197740

相关文章

  • 记一次k8s etcd报错Unhealthy
    使用命令某个节点ectd不健康#kubectlgetcsNAMESTATUSMESSAGEERRORcontroller-managerHealthy......
  • npm install 问题集
    一、遇到npmERR:requesttohttps://registry.npm.taobao.orgfailed,reason:certificatehasexpired翻译成中文就是:请求https://registry.npm.taobao.org失败,原因:证书已过期原因是淘宝镜像源由原来的https://registry.npm.taobao.org更换为下面这个:更换https://regi......
  • 日志报错监控,nodejs实现服务器日志监控,发现指定错误,发送到微信群
    nohupnodelog2.js>log_output.log2>&1&constfs=require('fs');constrequest=require('request');constschedule=require('node-schedule');constmoment=require("moment-timezone");constl......
  • npm包 - 发布vue组件
    npm包-发布vue组件 一. 环境准备npminstall-g@vue/cli  二. 创建项目vuecreatevue-page-card-drag 本文使用vue2 三. 开发组件/加入组件可以将已经编写好的组件移动到components目录下,或者新建一个vue组件,步骤是一样的。例如我这里新建了一个Hello......
  • 记录一次定时器报错
    报错前因后果:我现在使用Winform开发上位机程序,读取PLC传递过来的CT,1、我将定时器方法InitTimerTick();写在构造器或者Load事件起作用2、如果写在后台线程不起作用,也不报错,我打断点查询的时候,发现InitCommonRegion方法没有执行,我向上查找,最终断点打在timer.Tick+=newEventHa......
  • 部署freeipa中报错:Command '/bin/systemctl start certmonger.service' returned non-
    cat/etc/dbus-1/system.d/certmonger.conf<allowsend_destination="org.fedorahosted.certmonger"send_interface="org.fedorahosted.certmonger"/><allowsend_destination="org.fedorahosted.certmonger"......
  • openGauss 执行修改表分区操作时报错
    执行修改表分区操作时报错问题现象执行ALTERTABLEPARTITION时,报错如下。ERROR:startvalueofpartition"XX"NOTEQUALup-boundaryoflastpartition.原因分析在同一条ALTERTABLEPARTITION语句中,既存在DROPPARTITION又存在ADDPARTITION时,无论它们在语句中的顺序是......
  • 前端启动失败,踩坑/报错node-sass版本与本地环境不符
    Node自带npm,但自己可能后期升级过npm,终端使用命令自查当前node与npm版本号,按照需要对照下图修改。通常是由于前端项目sass版本与本机Node环境不符导致前端启动失败,可在前端项目的package.json中找到node-sass版本号.       node与node-sass版本匹配图,直戳官网......
  • docker客户端升级版本之后pull镜像报错Docker Image Format v1 and Docker Image mani
    故障现象,把docker从24版本升级至26版本之后从客户端pullnfs-client-provisioner镜像时报错报错信息如下#dockerpullquay.io/external_storage/nfs-client-provisioner:latestlatest:Pullingfromexternal_storage/nfs-client-provisioner[DEPRECATIONNOTICE]DockerIm......
  • Android源码编译报错 FAILED: out/soong/build.ninja
    网上查了比较多资料发现是swap分区不够导致的,修改swap分区大小参考如下:https://blog.csdn.net/phj1990/article/details/124961180https://zhuanlan.zhihu.com/p/399986218swap分区大小选择:内存<=4g:Swap至少4G内存4~16G:Swap至少8G内存16G~64G:Swap至少16G内存64......