修改依赖时安装失败

System:

  • OS: Windows 10 10.0.20348*
  • CPU: (2) x64 Intel(R) Xeon(R) Platinum 8269CY CPU @ 2.50GHz*

Binaries:

  • Node: 18.16.0*
  • npm: 9.5.1*

Koishi:

  • Core: 4.13.2*
  • Console: 5.11.1*

日志:

          `2023-06-15 09:40:15 [W] market npm`
          
          `2023-06-15 09:40:15 [W] market ERR! code ERESOLVE`
          
          `2023-06-15 09:40:15 [W] market npm ERR! ERESOLVE unable to resolve dependency tree`
          
          `2023-06-15 09:40:15 [W] market npm ERR! `
          
          `2023-06-15 09:40:15 [W] market npm ERR! While resolving: @koishijs/boilerplate@1.7.3`
          
          `2023-06-15 09:40:15 [W] market npm ERR! Found: @koishijs/plugin-console@5.11.1`
          
          `2023-06-15 09:40:15 [W] market npm ERR! node_modules/@koishijs/plugin-console`
          
          `2023-06-15 09:40:15 [W] market npm ERR!   @koishijs/plugin-console@"5.11.1" from the root project`
          
          `2023-06-15 09:40:15 [W] market npm ERR! `
          
          `2023-06-15 09:40:15 [W] market npm ERR! Could not resolve dependency:`
          
          `2023-06-15 09:40:15 [W] market npm ERR! peer @koishijs/plugin-console@"^5.11.2" from @koishijs/plugin-market@2.1.1`
          
          `2023-06-15 09:40:15 [W] market npm ERR! node_modules/@koishijs/plugin-market`
          
          `2023-06-15 09:40:15 [W] market npm ERR!   @koishijs/plugin-market@"2.1.1" from the root project`
          
          `2023-06-15 09:40:15 [W] market npm ERR! `
          
          `2023-06-15 09:40:15 [W] market npm ERR! Fix the upstream dependency conflict, or retry`
          
          `2023-06-15 09:40:15 [W] market npm ERR! this command with --force or --legacy-peer-deps`
          
          `2023-06-15 09:40:15 [W] market npm ERR! to accept an incorrect (and potentially broken) dependency resolution.`
          
          `2023-06-15 09:40:15 [W] market npm ERR! `
          
          `2023-06-15 09:40:15 [W] market npm ERR! `
          
          `2023-06-15 09:40:15 [W] market npm ERR! For a full report see:`
          
          `2023-06-15 09:40:15 [W] market npm ERR! C:\Users\Administrator\AppData\Local\npm-cache\_logs\2023-06-15T01_40_14_109Z-eresolve-report.txt`
          
          `2023-06-15 09:40:15 [W] market `
          
          `2023-06-15 09:40:15 [W] market npm ERR! A complete log of this run can be found in:`
          
          `2023-06-15 09:40:15 [W] market npm ERR!     C:\Users\Administrator\AppData\Local\npm-cache\_logs\2023-06-15T01_40_14_109Z-debug-0.log`

report.txt:

'Log files:
C:\Users\Administrator\AppData\Local\npm-cache_logs\2023-06-15T01_40_14_109Z-debug-0.log

            # npm resolution error report
            
            While resolving: @koishijs/boilerplate@1.7.3
            Found: @koishijs/plugin-console@5.11.1
            node_modules/@koishijs/plugin-console
              @koishijs/plugin-console@"5.11.1" from the root project
            
            Could not resolve dependency:
            peer @koishijs/plugin-console@"^5.11.2" from @koishijs/plugin-market@2.1.1
            node_modules/@koishijs/plugin-market
              @koishijs/plugin-market@"2.1.1" from the root project
            
            Fix the upstream dependency conflict, or retry
            this command with --force or --legacy-peer-deps
            to accept an incorrect (and potentially broken) dependency resolution.
1 个赞

image
重启之后还有这种奇怪的现象

2 个赞

829 了。具体原因可以看:

遇事不决就重装,重装之后就正常了

1 个赞

草,这个有意思

1 个赞