You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the latest version of npm-check-updates
I am using node >= 14.14
Steps to Reproduce
have a package defined as dependency and as override (useful when some other dependencies have an unnecessary hard constraint and we want to deduplicate the dependency tree)
use npx -y npm-check-updates --interactive and press enter twice (updating this dependency and installing the changes)
Only the dep is updated, and not the override, leading to this error output:
✔ Choose which packages to update ›
typescript ^5.1.6 → ^5.2.2
✔ Run npm install to install new versions? … yes
Installing dependencies...
npm
ERR! code EOVERRIDE
npm ERR! Override for typescript@^5.2.2 conflicts with direct dependency
Desired behavior
In these cases where the dependency and the override are equal, the dependency and override should be updated in sync, so that the installation then works.
The text was updated successfully, but these errors were encountered:
FYI: In researching the problem, I came across this recommendation in the official npm docs (emphasis mine):
You may not set an override for a package that you directly depend on unless both the dependency and the override itself share the exact same spec. To make this limitation easier to deal with, overrides may also be defined as a reference to a spec for a direct dependency by prefixing the name of the package you wish the version to match with a $.
npm-check-updates
node >= 14.14
Steps to Reproduce
npx -y npm-check-updates --interactive
and press enter twice (updating this dependency and installing the changes)Current behavior
Only the dep is updated, and not the override, leading to this error output:
Desired behavior
In these cases where the dependency and the override are equal, the dependency and override should be updated in sync, so that the installation then works.
The text was updated successfully, but these errors were encountered: