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
npm will install one version (0.14.40) of something in module Bs node_modules folder, but yarn will install two versions. 0.14.0 in module Bs and 0.14.41 in module As node_modules folder.
Compared to npm this leads to unexpected behavior for bundlers and other processing tools (like TS). As a side note: something is a public scoped package, maybe this is related to the scoping issues.
What is the expected behavior?
I like the way how npm solves this problem :)
I know the --flat option for yarn install, but I don't want to choose between version 1.0.0 and 2.0.0of a package. I think yarn should simply install semver compatible versions as flat as possible. In my example above 0.14.40 matches requirements from both modules (I think this is what npm does).
Maybe my understanding is wrong, but whats the expected behavior in this case?
Thanks!
The text was updated successfully, but these errors were encountered:
Do you want to request a feature or report a bug?
bug?
Please mention your node.js, yarn and operating system version.
yarn 0.16, node 6.5.0 and OS X 10.12.1
What is the current behavior?
npm
andyarn
differ in the way how deps of deps are resolved.For example:
There is a public module called
something
and its latest version is 0.14.41.module As package.json:
module Bs package.json:
npm
will install one version (0.14.40) ofsomething
in module Bs node_modules folder, butyarn
will install two versions. 0.14.0 in module Bs and 0.14.41 in module As node_modules folder.Compared to npm this leads to unexpected behavior for bundlers and other processing tools (like TS). As a side note:
something
is a public scoped package, maybe this is related to the scoping issues.What is the expected behavior?
I like the way how
npm
solves this problem :)I know the
--flat
option foryarn install
, but I don't want to choose between version1.0.0
and2.0.0
of a package. I thinkyarn
should simply install semver compatible versions as flat as possible. In my example above 0.14.40 matches requirements from both modules (I think this is whatnpm
does).Maybe my understanding is wrong, but whats the expected behavior in this case?
Thanks!
The text was updated successfully, but these errors were encountered: