license, integrity, resolved changing unexpectedly in package-lock.json #128426
Unanswered
dcheckoway
asked this question in
npm
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! Is there a command line option to force
npm install
to setlicense
on entries inpackage-lock.json
? Here's the sitch...I just "promoted" an inherited dependency to a direct dependency.
npm install google-auth-library@8.1.1
After running that, mypackage-lock.json
was modified in a couple of ways I didn't expect:license
attribute disappearedintegrity
andresolved
attributesThis is pretty consistent for any dependency changes I make. It feels as if I'm using a different version of
npm
than whoever on my team last modified dependencies.I couldn't find anything in the docs about how to control this behavior. Not a big deal, just seemed odd. Can you help me understand what I'm missing, why these attributes would change?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions