Sreeragh A R
Sreeragh A R

Reputation: 3021

Will npm update use npm cache?

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)?

Upvotes: 0

Views: 235

Answers (1)

xrq0
xrq0

Reputation: 119

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

Upvotes: 0

Related Questions