物料广场的TyTabs选择器组件下载不了

小程序开发相关产品技术讨论,包括面板、智能小程序、React Native、Ray跨端框架、Panel SDK、微信小程序、小程序开发工具(IDE)及其他开发技术相关等话题


Post Reply
silverlight
Posts: 43

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.
Last edited by silverlight on 2024年 Jun 21日 18:35, edited 1 time in total.

Tags:
智能小程序开发者
Posts: 170

Re: 物料广场的TyTabs选择器组件下载不了

你好,请将lock文件删除后重新安装

silverlight
Posts: 43

Re: 物料广场的TyTabs选择器组件下载不了

智能小程序开发者 2024年 Jun 20日 17:09

你好,请将lock文件删除后重新安装

删除之后,我卸载重装了yarn ,还是无法安装。

Code: Select all

yarn add @ray/components-ty-tabs
yarn add v1.22.22
[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.
智能小程序开发者
Posts: 170

Re: 物料广场的TyTabs选择器组件下载不了

正确应该执行 yarn add @ray-js/components-ty-tabs 你这个命令行写错了。 怎么帖子内容里命令行写的对的,下面命令行输入的错的。
https://www.npmjs.com/package/@ray-js/c ... ts-ty-tabs

silverlight
Posts: 43

Re: 物料广场的TyTabs选择器组件下载不了

智能小程序开发者 2024年 Jun 21日 09:50

正确应该执行 yarn add @ray-js/components-ty-tabs 你这个命令行写错了。 怎么帖子内容里命令行写的对的,下面命令行输入的错的。
https://www.npmjs.com/package/@ray-js/c ... ts-ty-tabs

Image
Image
我一开始是直接复制物料广场里面的命令行。发现安装不成功,所以去了npm查看代码。没注意到你们这两边文档的命令行居然不同

智能小程序开发者
Posts: 170

Re: 物料广场的TyTabs选择器组件下载不了

感谢反馈,这里我们修改一下

Post Reply