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

npm ERR! Invalid Version: 0.2.98.5 #307

Open
GGAlanSmithee opened this issue May 27, 2022 · 5 comments
Open

npm ERR! Invalid Version: 0.2.98.5 #307

GGAlanSmithee opened this issue May 27, 2022 · 5 comments

Comments

@GGAlanSmithee
Copy link

Running a fresh install, I get the error npm ERR! Invalid Version: 0.2.98.5. This indicates that there is a dependency of @dhi/react-components with a version that is non-semver compliant.

I downgraded the package all the way to < 0.5.0 to fix the problem, but I know for sure that I have been able to install the package at a higher version than this before, so there's probably something else going on.

I did try this in a clean project to rule out other dependencies affecting it, but the outcome is the same.

I can't see that there is any depency with that version, so I'm not sure what the origin of the issue is.

@bertearazvan
Copy link
Contributor

I would try to completely remove yarn.lock and node_modules and reinstalling all dependencies. This usually works for me in such cases.

@GGAlanSmithee
Copy link
Author

I've done that multiple times, as well as run npm cache clean -f. As stated above, I also tested this in a new, isolated project.

I did test to create a new project with all the dependencies of dhi@react-components which installs fine.

I will try to wipe npms global cache.

@GGAlanSmithee
Copy link
Author

GGAlanSmithee commented May 27, 2022

One of my colleagues are also getting this. It hit us both first time today. It is the same project though. I am fairly certain the source of the issue is with this project, but can def. be something on our side.

Can you reporduce this @bertearazvan ?

  1. in an empty folder
  2. npm init -y
  3. (add npmrc with registry and key if needed)
  4. npm i react@^16.10.2 (to satisfy peer deps requirements)
  5. npm i @dhi/react-components

Expected result: package installed

Actual result

npm WARN ERESOLVE overriding peer dependency
npm WARN ERESOLVE overriding peer dependency
npm ERR! Invalid Version: 0.2.98.5

@bertearazvan
Copy link
Contributor

Hmm okay, I am personally not a lot into the react-components package. Maybe @FranzThomsen1089 knows what's going on.

@GGAlanSmithee
Copy link
Author

Thanks @bertearazvan

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