Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while installing with yarn #521

Closed
joesdu opened this issue Mar 24, 2023 · 13 comments
Closed

Error while installing with yarn #521

joesdu opened this issue Mar 24, 2023 · 13 comments

Comments

@joesdu
Copy link

joesdu commented Mar 24, 2023

[#516 ]

Error: While persisting /G:/antdpro6-template/.yarn/cache/rc-pagination-npm-3.3.0-1838abafd7-6b40cb2ab6.zip/node_modules/rc-pagination/ -> /G:/antdpro6-template/node_modules/antd/node_modules/rc-pagination ENOENT: no such file or directory, mkdir 'G:\antdpro6-template\node_modules\antd\node_modules\rc-pagination\dist~demos:id'

@yoyo837
Copy link
Member

yoyo837 commented Mar 24, 2023

安装3.3.1版本, 如果来自 antd, 删除node_modules和lock文件重新安装即可.

@yoyo837 yoyo837 closed this as completed Mar 24, 2023
@joesdu
Copy link
Author

joesdu commented Mar 24, 2023

安装3.3.1版本, 如果来自 antd, 删除node_modules和lock文件重新安装即可.

删除后还是,提问之前已经删掉重新安装了一次了.问题依旧

@yoyo837
Copy link
Member

yoyo837 commented Mar 24, 2023

yarn why rc-pagination 看看

@joesdu
Copy link
Author

joesdu commented Mar 24, 2023

yarn why rc-pagination

➤ YN0001: │ Error: While persisting /G:/antdpro6-template/.yarn/cache/rc-pagination-npm-3.3.0-1838abafd7-6b40cb2ab6.zip/node_modules/rc-pagination/ -> /G:/antdpro6-template/node_modules/antd/node_modules/rc-pagination ENOENT: no such file or directory, mkdir 'G:\antdpro6-template\node_modules\antd\node_modules\rc-pagination\dist~demos:id'
➤ YN0000: └ Completed in 15s 458ms
➤ YN0000: Failed with errors in 16s 490ms
❯❯ antdpro6-template git:(main)  14:33 yarn why rc-pagination
├─ antd@npm:4.24.8
│ └─ rc-pagination@npm:3.2.0 (via npm:~3.2.0)

├─ antd@npm:5.3.2
│ └─ rc-pagination@npm:3.3.0 (via npm:~3.3.0)

├─ antd@npm:5.3.2 [1516b]
│ └─ rc-pagination@npm:3.3.0 [18b67] (via npm:~3.3.0 [18b67])

└─ antd@npm:4.24.8 [ff17e]
└─ rc-pagination@npm:3.2.0 [07864] (via npm:~3.2.0 [07864])
❯❯ antdpro6-template git:(main) 14:33

@yoyo837
Copy link
Member

yoyo837 commented Mar 24, 2023

image

这不还是3.3.0么, 想办法更新到3.3.1

@yoyo837
Copy link
Member

yoyo837 commented Mar 24, 2023

是不是有用私有npm镜像? 镜像里没同步到3.3.1?

@joesdu
Copy link
Author

joesdu commented Mar 24, 2023

是不是有用私有npm镜像? 镜像里没同步到3.3.1?

没有设置私有镜像,我试试强制安装3.3.1试试.

@yoyo837
Copy link
Member

yoyo837 commented Mar 24, 2023

antd 使用的 rc-pagination@~3.3.0, 没有nod_modules和lock文件的情况下应该可以匹配到 3.3.1的.

@yoyo837
Copy link
Member

yoyo837 commented Mar 24, 2023

image

@joesdu
Copy link
Author

joesdu commented Mar 24, 2023

antd 使用的 rc-pagination@~3.3.0, 没有nod_modules和lock文件的情况下应该可以匹配到 3.3.1的.

在项目中使用yarn add rc-pagination能检测到3.3.1但是还是无法安装,删掉node_modules重新安装还是不行

image

@yoyo837
Copy link
Member

yoyo837 commented Mar 24, 2023

lock文件删了没

@joesdu
Copy link
Author

joesdu commented Mar 24, 2023

lock文件删了没

刚没看到yarn.lock文件,我再试试.

@joesdu
Copy link
Author

joesdu commented Mar 24, 2023

lock文件删了没

搞定了,感谢大佬😘

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants