choojs/create-choo-app

npm install old cached pkg

ZhouHansen opened this issue · 3 comments

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.

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?

should be fixed in #50; thanks!