Hi all

I am doing an investigation which relates to the npm cache. I though I
understood how the cache worked, but Iam seeing behavior in recent builds
that is different than what I expected. It may be however that I am
misunderstanding how the cache is used. I have not walked the code yet
(which I can do if necessary) but I assumed there's enough folks here that
are familiar.

My current understanding / expectation

1. If a module is retrieved from the npm registry it will be stored in the
cache.
2. If I manually call 'npm cache add" on a module it will add it to the
cache such that when retrieved the cached version is used.
3. If I retrieve that module either directly via npm install or via being
specified in an app/module package.json then it will be retrieved from the
cache. This includes native modules

   - My assumption here is that if I specify a version explicitly that does
   not match what is in the cache it will be downloaded
   - If I don't specify a version it will use whatever is in the cache.
   - If I specify a range and the version in the cache matches the range
   then it will be used.

I appreciate any clarification you can give.

Thanks all
Glenn

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to