npm install @ray/components-ty-tabs报错如下。查询之后大概意思是该组件要求@ray-js/ray 的版本为 0.6.26
而使用yarn add @ray-js/components-ty-tabs,则直接报错没有@ray-js/components-ty-tabs
npm下载报错
Code: Select all
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: public-sdm-template@1.0.1
npm ERR! Found: @ray-js/ray@1.5.17
npm ERR! node_modules/@ray-js/ray
npm ERR! @ray-js/ray@"^1.4.45" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @ray-js/ray@"^0.6.26" from @ray-js/components-ty-actionsheet@0.0.26
npm ERR! node_modules/@ray-js/components-ty-actionsheet
npm ERR! @ray-js/components-ty-actionsheet@"^0.0.26" 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! D:\nvm\nodejs\node_cache\_logs\2024-06-20T08_53_18_791Z-eresolve-report.txt
npm ERR! A complete log of this run can be found in: D:\nvm\nodejs\node_cache\_logs\2024-06-20T08_53_18_791Z-debug-0.log
yarn 下载报错
Code: Select all
yarn add v1.22.22
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] Resolving packages...
error Error: https://registry.npmjs.com/@ray%2fcomponents-ty-tabs: Not found
at params.callback [as _callback] (D:\nvm\nodejs\node_global\node_modules\yarn\lib\cli.js:66680:18)
at self.callback (D:\nvm\nodejs\node_global\node_modules\yarn\lib\cli.js:141410:22)
at Request.emit (node:events:517:28)
at Request.<anonymous> (D:\nvm\nodejs\node_global\node_modules\yarn\lib\cli.js:142382:10)
at Request.emit (node:events:517:28)
at IncomingMessage.<anonymous> (D:\nvm\nodejs\node_global\node_modules\yarn\lib\cli.js:142304:12)
at Object.onceWrapper (node:events:631:28)
at IncomingMessage.emit (node:events:529:35)
at endReadableNT (node:internal/streams/readable:1400:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.