ant-design / pro-components

🏆 Use Ant Design like a Pro!
https://pro-components.antdigital.dev
MIT License
4.04k stars 1.29k forks source link

🐛[BUG] No matching version found for @ant-design/pro-utils@1.35.2 #4772

Closed caoquy2000 closed 2 years ago

caoquy2000 commented 2 years ago

Hi, first of all, thanks for all the work you do here. Today my Ant Design Pro project can't run npm install, with the next error.

Describe the bug When I try to install dependencies takes this error:

npm install

npm ERR! code ETARGET npm ERR! notarget No matching version found for @ant-design/pro-utils@1.35.2. npm ERR! notarget In most cases you or one of your dependencies are requesting npm ERR! notarget a package version that doesn't exist. npm ERR! notarget npm ERR! notarget It was specified as a dependency of '@ant-design/pro-descriptions' npm ERR! notarget

My dependencies

"dependencies": { "@ant-design/icons": "^4.7.0", "@ant-design/pro-descriptions": "^1.0.1", "@ant-design/pro-form": "^1.52.14", "@ant-design/pro-layout": "^6.32.7", "@ant-design/pro-provider": "^1.5.6", "@ant-design/pro-skeleton": "^1.0.5", "@ant-design/pro-table": "^2.62.8", "@umijs/route-utils": "^2.0.0", "antd": "^4.17.0", "classnames": "^2.3.0", "firebase": "^8.2.3", "git-cz": "^4.8.0", "immutable": "^4.0.0", "lodash": "^4.17.0", "moment": "^2.29.0", "omit.js": "^2.0.2", "prop-types": "^15.8.1", "rc-menu": "^9.1.0", "rc-util": "^5.16.0", "react": "^17.0.0", "react-dev-inspector": "^1.7.0", "react-dom": "^17.0.0", "react-helmet-async": "^1.2.0", "react-quill": "^1.3.5", "umi": "^3.5.0", "umi-request": "^1.0.8" },

Node: v14.15.3 NPM: v6.14.9 Thank You!

kangtaku commented 2 years ago

https://github.com/ant-design/pro-components/commit/1e5f42d772faa98c4caea985e889d7785044eafa

this change seems like to relate to this issue.

mengtongun commented 2 years ago

@kangtaku How can I fixed that issue?

Dunqing commented 2 years ago

Workaround

lock the version to the previous minor version

kangtaku commented 2 years ago

@mengtongun I used 2.66.1 version instead of 2.27.2 which was previous one. It looks working on npm install

Dunqing commented 2 years ago

@chenshuai2144 Please republish new version to fix the issue

mengtongun commented 2 years ago

@kangtaku I use yarn to install. My case is : running auto deploy but it detect there is no version of pro-utils@1.35.2 exist.

@chenshuai2144 Could you help fix this ?

caoquy2000 commented 2 years ago

@1247748612 Why it auto install @ant-design/pro-utils@1.35.2 bro ? While i didn't define it in package.json.

mengtongun commented 2 years ago

@caoquy2000 Other packages required @ant-design/pro-utils@1.35.2. You can check in package.json.lock to see that requirement.

You can check this release.

https://github.com/ant-design/pro-components/commit/1e5f42d772faa98c4caea985e889d7785044eafa

leonahliang90 commented 2 years ago

having the same issue here image

fitterfizzle commented 2 years ago

Having the same problem

Screenshot 2022-03-04 at 13 55 03

How can we fix this?

leonahliang90 commented 2 years ago

@fitterfizzle what i did is i temporary revert those version number based on this recent published

and here is the screenshot for your reference, this may only work as temporary solution, we still need someone from the team to publish, worst case by Monday I believe as its Friday night right now

image

mengtongun commented 2 years ago

@fitterfizzle We are waiting for the response from the owner too.

But if you really wish to fix it. You can downgrade the package of Antd that required @ant-design/pro-utils@1.35.2 . Noted: It might break your current component.

xyy7260 commented 2 years ago

大晚上,而且周五正好要放假休息,没想到 一直在弄这个问题

fanartie commented 2 years ago

stuck for 5 hours !!!

tnduc commented 2 years ago

Huge impact on users

sajidnagari commented 2 years ago

I'm facing the same issue.

cjbi commented 2 years ago

I also encountered the same problem, if you know how to fix it, please tell me

chenshuai2144 commented 2 years ago

sync 一下你们的 npm 私有库吧。

npm 有点抽风,包同步速度有点慢

mengtongun commented 2 years ago

npm show @ant-design/pro-utils But I still faced the same issue.

image

mengtongun commented 2 years ago

yarn info @ant-design/pro-utils

caoquy2000 commented 2 years ago

@mengtongun Can yarn solve this problem bro?

mengtongun commented 2 years ago

It cannot solve bro @caoquy2000

sajidnagari commented 2 years ago

When I remove the node module. re-install module. I upgrade Node version v16.14.0. It's working for me.

kangtaku commented 2 years ago

Why did it be closed? it seems still not work

cjbi commented 2 years ago

It works locally, not within Github Actions

BobbleHatkjh commented 2 years ago

its still not work

trieutran81 commented 2 years ago

image Fix it.

FlowerWrong commented 2 years ago

Waiting for release.

"@ant-design/pro-layout": "^6.33.1",
"@ant-design/pro-utils": "^1.35.1", # 1.35.2 is missing on npm
"@ant-design/pro-form": "1.55.1", # old version
"@ant-design/pro-table": "2.65.0", # old version
xXAvoraXx commented 2 years ago

What to write to get new updates.

mengtongun commented 2 years ago

yarn config set registry https://registry.npm.taobao.org/

Try to add this to your Github Action. Or your CI/CD.

Reference https://github.com/ant-design/pro-components/issues/4782