首页 > 其他分享 >(转发) Fix the upstream dependency conflict installing NPM packages

(转发) Fix the upstream dependency conflict installing NPM packages

时间:2023-01-17 18:23:14浏览次数:64  
标签:NPM npm deps -- Fix installing legacy install peer

原文:Fix the upstream dependency conflict installing NPM packages | bobbyhadz

 

Fix the upstream dependency conflict installing NPM packages #

Use the --legacy-peer-deps flag to solve the npm error "Fix the upstream dependency conflict, or retry this command with --force or --legacy-peer-deps", e.g. npm install --legacy-peer-deps.

The flag causes NPM to ignore peer dependencies and proceed with the installation anyway.

fix the upstream dependency conflict or retry

shell  
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! For a full report see:
npm ERR! /home/borislav/.npm/_logs/2022-11-23T09_56_26_533Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/borislav/.npm/_logs/2022-11-23T09_56_26_533Z-debug-0.log

Try to run the npm install command with the --legacy-peer-deps flag.

shell  
npm install --legacy-peer-deps

# 

标签:NPM,npm,deps,--,Fix,installing,legacy,install,peer
From: https://www.cnblogs.com/panpanwelcome/p/17058477.html

相关文章

  • 5. Pytest自定义前置后置:fixture参数详解(了解)
    一、前言我们上节课讲到fixture自定义前置函数的时候,有5个非必填参数,scope,params,autouse,ids,name。一般情况下这五个参数我们在工作中都不常用,但是个别情况会用到,这节......
  • 4. Pytest自定义前置后置:fixture简单应用
    一、前言前面讲到用例加setup和teardown可以实现在测试用例之前或之后加入一些操作,但这种是整个脚本全局生效的,如果我想实现指定某一个执行前置,另一个不执行前置,则需......
  • CF1364C-Ehab and Prefix MEXs
    a[i]<=i,否则当a[i]>i时,需要1~i项有数字0~a[i]-1,这一共是a[i]个数字,而1~i项只有i个数字,需要的比拥有的数字多,不成立当a[i]!=a[i-1]时,说明Mex改变了,那么需要b[i]为a[i-1]才......
  • CF 1779C Least Prefix Sum 题解
    CF链接:LeastPrefixSumLuogu链接:Least PrefixSum${\scr\color{CornflowerBlue}{\text{Solution}}}$先来解释一下题意:给定一个数组,问最少把多少个数变成相反数,......
  • Fix for PowerShell Script Not Digitally Signed
    Whenyouruna.ps1PowerShellscriptyoumightgetthemessagesaying“.ps1isnotdigitallysigned.Thescriptwillnotexecuteonthesystem.”Tofixity......
  • node和npm如何升级版本
    node和npm在某种意义上,早已成为当前前端开发中不可或缺的工具。本文将介绍如何进行node和npm的版本升级和指定等等操作。查看node和npm版本:node-vnpm-v清除npm缓......
  • npm install error python2
    >[email protected]/Users/nyan/personal/workspace/react16.9/node_modules/watchpack-chokidar2/node_modules/fsevents>nodeinstall.jsERROR:root:codef......
  • npm与包
                                        ......
  • npm proxy问题
      检查你的电脑是否需要配置代理,如果不需要可以将代理禁用:npmconfigsetproxyfalse如果是需要配置代理服务的:开启代理npmconfigsetproxytrue配置代理信息......
  • vue项目,npm run dev的时候出现:Error: error:0308010C:digital envelope routines::uns
    vue项目,npmrundev的时候出现:Error:error:0308010C:digitalenveloperoutines::unsupported这个是node的版本问题。我的node是17+的版本,按照网上说的降低版本又太麻烦......