alexanderGugel / ied

:package: Like npm, but faster - an alternative package manager for Node
http://alexandergugel.github.io/ied
MIT License
1.99k stars 53 forks source link

Install same lib again but different versions doesn't work #130

Closed PeterDaveHello closed 8 years ago

PeterDaveHello commented 8 years ago

npm behavior: npm install jquery@3 -> node_modules/jquery = jquery@3.0.0 then npm install jquery@2 -> node_modules/jquery = jquery@2.2.4

ied behavior: ied install jquery@3 -> node_modules/jquery = jquery@3.0.0 then ied install jquery@2 -> node_modules/jquery = jquery@3.0.0 (doesn't change)

The installed jquery in node_modules/jquery didn't be changed since the first/clean install, is this a bug? Thanks!

alexanderGugel commented 8 years ago

This is kind of by design. Problem is in the local resolve mechanism:

https://github.com/alexanderGugel/ied/blob/master/src/install.js#L69

mgcrea commented 8 years ago

Just fixed this in a375f38, I've only added semver check for explicit install to minimize the performance hit & since I'm not sure it should be needed otherwise.

PeterDaveHello commented 8 years ago

Still not work for me on v2.0.5. (BTW, v2.0.5 version tag is missing in git repo)

PeterDaveHello commented 8 years ago

Thanks, will this be shipped on a new version soon? Just asking, thanks.

alexanderGugel commented 8 years ago

Yup, this will be included in the next version.

PeterDaveHello commented 8 years ago

Okay, thanks.