react-component / pagination

React Pagination
https://pagination-react-component.vercel.app/
MIT License
658 stars 327 forks source link

Error while installing with yarn #516

Closed vlkpa closed 1 year ago

vlkpa commented 1 year ago

yarn@3.1.1 yarn add rc-pagination

I am facing this error

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

sabitalizade commented 1 year ago

also i faced this error and cant resolve

teamco commented 1 year ago

under windows os you have no ability to create a folder or file name started from colon :) e.g. C:\<project>\node_modules\rc-pagination\dist\~demos\:id

duan602728596 commented 1 year ago

The same problem. The current solution in window is

"resolutions": {
    "rc-pagination": "3.2.0"
}

if you use yarn.

duypham90 commented 1 year ago

I still got error in window for now

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

joesdu commented 1 year ago

I still got error in window for now

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'