Casbin = way to authorization
A place for Casbin developers and users
现在注册
已注册用户请  登录
主题样式选择
默认主题样式 ✅
知乎主题样式 
admin
Casnode  ›  问与答

为什么npm一直提示错误,试过好多次了。

  •  
  •  
    admin · 2个月前 · 29 次点击 
    这是一个创建于 52 天前的主题,其中的信息可能已经有所发展或是发生改变。

    npm ERR! code ERESOLVE

    npm ERR! ERESOLVE could not resolve

    npm ERR! npm ERR! While resolving: @craco/craco@6.4.5 npm ERR! Found: react-scripts@5.0.1 npm ERR! node_modules/react-scripts

    npm ERR! react-scripts@"5.0.1" from the root project

    npm ERR! peer react-scripts@"^5.0.0" from craco-less@2.0.0 npm ERR! node_modules/craco-less

    npm ERR! craco-less@"^2.0.0" from the root project

    npm ERR! npm ERR! Could not resolve dependency:

    npm ERR! peer react-scripts@"^4.0.0" from @craco/craco@6.4.5 npm ERR! node_modules/@craco/craco npm ERR! @craco/craco@"^6.4.5" from the root project

    npm ERR! peer @craco/craco@"^6.0.0" from craco-less@2.0.0 npm ERR! node_modules/craco-less

    npm ERR! craco-less@"^2.0.0" from the root project npm ERR!

    npm ERR! Conflicting peer dependency: react-scripts@4.0.3 npm ERR! node_modules/react-scripts

    npm ERR! peer react-scripts@"^4.0.0" from @craco/craco@6.4.5 npm ERR! node_modules/@craco/craco npm ERR! @craco/craco@"^6.4.5" from the root project

    npm ERR! peer @craco/craco@"^6.0.0" from craco-less@2.0.0 npm ERR! node_modules/craco-less

    npm ERR! craco-less@"^2.0.0" 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! See /root/.npm/eresolve-report.txt for a full report.

    npm ERR! A complete log of this run can be found in:

    npm ERR! /root/.npm/_logs/2022-10-17T12_42_28_038Z-debug-0.log

    .

    NPM 版本是 8.19.2

    29 次点击  ∙  0 人收藏  
      Tweet Weibo 忽略主题 
    目前尚无回复
    关于   ·   FAQ   ·   API   ·   我们的愿景   ·   广告投放   ·   感谢   ·   实用小工具   ·   0 人在线   最高记录 30   ·     选择语言  ·     选择编辑器
    创意工作者们的社区
    World is powered by code
    VERSION: 027737b · 6ms · UTC 15:33 · PVG 23:33 · LAX 08:33 · JFK 11:33
    ♥ Do have faith in what you're doing.