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

🐛[BUG] No matching version found for @ant-design/[email protected] #4772

Closed
caoquy2000 opened this issue Mar 4, 2022 · 30 comments
Closed

Comments

@caoquy2000
Copy link

caoquy2000 commented Mar 4, 2022

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/[email protected].
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
Copy link

kangtaku commented Mar 4, 2022

1e5f42d

this change seems like to relate to this issue.

@mengtongun
Copy link

@kangtaku
How can I fixed that issue?

@Dunqing
Copy link
Collaborator

Dunqing commented Mar 4, 2022

Workaround

lock the version to the previous minor version

@kangtaku
Copy link

kangtaku commented Mar 4, 2022

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

@Dunqing
Copy link
Collaborator

Dunqing commented Mar 4, 2022

@chenshuai2144 Please republish new version to fix the issue

@mengtongun
Copy link

@kangtaku
I use yarn to install.
My case is : running auto deploy but it detect there is no version of [email protected] exist.

@chenshuai2144 Could you help fix this ?

@caoquy2000
Copy link
Author

@1247748612 Why it auto install @ant-design/[email protected] bro ? While i didn't define it in package.json.

@mengtongun
Copy link

@caoquy2000 Other packages required @ant-design/[email protected]. You can check in package.json.lock to see that requirement.

You can check this release.

1e5f42d

@leonahliang90
Copy link

having the same issue here
image

@fitterfizzle
Copy link

Having the same problem

Screenshot 2022-03-04 at 13 55 03

How can we fix this?

@leonahliang90
Copy link

leonahliang90 commented Mar 4, 2022

@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
Copy link

@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/[email protected] .
Noted: It might break your current component.

@xyy7260
Copy link

xyy7260 commented Mar 4, 2022

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

@fanartie
Copy link

fanartie commented Mar 4, 2022

stuck for 5 hours !!!

@tnduc
Copy link

tnduc commented Mar 4, 2022

Huge impact on users

@sajidnagari
Copy link

I'm facing the same issue.

@cjbi
Copy link

cjbi commented Mar 5, 2022

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

@chenshuai2144
Copy link
Contributor

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

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

@mengtongun
Copy link

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

image

@mengtongun
Copy link

yarn info @ant-design/pro-utils

@caoquy2000
Copy link
Author

@mengtongun Can yarn solve this problem bro?

@mengtongun
Copy link

It cannot solve bro @caoquy2000

@sajidnagari
Copy link

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

@kangtaku
Copy link

kangtaku commented Mar 7, 2022

Why did it be closed? it seems still not work

@cjbi
Copy link

cjbi commented Mar 7, 2022

It works locally, not within Github Actions

@BobbleHatkjh
Copy link

its still not work

@trieutran81
Copy link

image
Fix it.

@FlowerWrong
Copy link

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
Copy link
Contributor

What to write to get new updates.

@mengtongun
Copy link

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

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

Reference
#4782

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