Mit der Veröffentlichung von npm @ 5 wird nun ein geschrieben, package-lock.jsonsofern noch kein npm-shrinkwrap.jsonvorhanden ist.
Ich habe npm @ 5 global installiert über:
npm install npm@5 -g
Und jetzt, wenn a npm-shrinkwrap.jsongefunden wird während:
npm install
Eine Warnung wird gedruckt:
npm WARN read-shrinkwrap This version of npm
is compatible with lockfileVersion@1,
but npm-shrinkwrap.json was generated for lockfileVersion@0.
I'll try to do my best with it!
Mein Take-Away ist also, dass ich die Schrumpffolie durch die ersetzen sollte package-lock.json.
Doch warum gibt es dafür ein neues Format? Was können die package-lock.jsontun, npm-shrinkwrap.jsonwas nicht?