Will npm update use npm cache?

202 views Asked by At

My understanding is that. Assume I have a package.json file with

"bunyan": "^1.8.9"

I have installed this and it will be in my npm cache.

The latest version(in the given range) of bunyan is "^1.8.12"

If I run

npm update

Will it install latest version "1.8.12" regardless of the npm cache (and update package-lock.json file)?

1

There are 1 answers

0
xrq0 On

If version 1.8.12 satisfies 1.8.9, yes it will, otherwise, no.