-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Dependency Issue: Installation via npm fails #2123
Comments
Yeah, the dependencies could use some updating. I think the easiest way to solve this one however is to update the following line to get Line 52 in 531dc7f
According to semver this can cause some breaking changes, but we'll probably notice those along the way. There is a PR to update rollup (among other things), but it hasn't really been worked on over the last months; #1869 |
thanks for the reply, updating the version to 0.60.0 does make it install now, (but shows a few "high" severity issues, related to some other outdated packages - but as you said, that would need some major updates). bit off topic: |
What about just removing the rollup devDependency and just let rollup-plugin-babel deal with the dependency chain? It should know best what it needs. |
That will install v2 of rollup which does not support Node 6 and does not work with our current config (v0.48 had some breaking changes I believe so that's why we are using v0.47 still). So we'll have to do a bit more than that either way. I think that we can start with a PR to upgrade rollup to v0.60 and then continue from there. Considering that we might start migrating parts of the codebase to TypeScript soon (see #1271) I think we'll overhaul the build tooling not too far from now and that will also fix this issue |
@WikiRik -- that's correct, there will be some more work to be done to stablize our |
@profnandaa we can switch from npm to perhaps yarn or pnpm. I prefer to use pnpm and its almost compatible with npm (most commands are alike), so the transition will be seemless |
What's the upsides of using pnpm or yarn over npm? I'm also thinking we can now retire Node 6 and 8? |
Pnpm is “performant” version of npm, hence the name pnpm. |
I would retire anything under Node 18 for the next major release since those are not supported anymore. If people want we can still support Node 1 but that version already has been unsupported for over 6 months. |
Yeah that is what I was thinking . Supporting anything below 18 is just not worth it as they are all EOL and every platform(vercel , netlify to name a few) has already dropped them in favor of LTS and current. |
Describe the bug
Trying to run npm install with from current main/master fails due to some dependency issues
Examples
Additional context
Validator.js version: main/master
Node.js version: 16
OS platform: windows
The text was updated successfully, but these errors were encountered: