npm install old cached pkg
ZhouHansen opened this issue · 3 comments
ZhouHansen commented
My choo version is 5.6.2 in my npm cached list, so npm installs choo@5.6.2, it causes #19
I modified the statement in exports.install
:
var cmd = 'npm install --save --cache-min Infinity --loglevel error ' + packages
to
var cmd = 'npm install --save --cache-min 0 --loglevel error ' + packages
Failed, npm still installs choo@5.6.2
So, how about cleaning cache before install, something like this:
var cmd = 'npm cache clean choo && npm install --save --loglevel error ' + packages
It works.
yoshuawuyts commented
This is a tricky one — perhaps we should remove -cache-min Infinity
, and we should be good. That way it always checks, and we can still install offline. Would that work for you?
ZhouHansen commented
No, it doesn't work, neither add --prefer-online. See this issue : Disabling
cache completely <npm/npm#11338>
2017-10-20 23:57 GMT+08:00 Yoshua Wuyts <notifications@github.com>:
… This is a tricky one — perhaps we should remove -cache-min Infinity, and
we should be good. That way it always checks, and we can still install
offline. Would that work for you?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#30 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AH115TinpgVFNQj_EmHS3ZWKZ87Cgd8gks5suMLfgaJpZM4QASJZ>
.
goto-bus-stop commented
should be fixed in #50; thanks!