Package-lock.json / sudo npm i -g ghost-cli@latest

Hi,

After I updated Ghost / NPM with this command: “sudo npm i -g ghost-cli@latest

I get this warning:

ghost-mgr@server:/var/www/ghost$ sudo npm i -g ghost-cli@latest
npm WARN deprecated mkdirp@0.5.4: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
/usr/bin/ghost -> /usr/lib/node_modules/ghost-cli/bin/ghost
+ ghost-cli@1.13.1
updated 1 package in 14.002s

How to fix this warning??

BTW: If I run: “ghost update” no errors

I have also found a new file in my dir (/var/www/ghost/) -> called: “package-lock.json

It has this content

{
  "requires": true,
  "lockfileVersion": 1,
  "dependencies": {
    "mkdirp": {
      "version": "1.0.3",
      "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.3.tgz",
      "integrity": "sha512-6uCP4Qc0sWsgMLy1EOqqS/3rjDHOEnsStVr/4vtAIK2Y5i2kA7lFFejYrpIyiN9w0pYf4ckeCYT9f1r1P9KX5g=="
    }
  }
}

What did this file do? Shut i keep it, or can i delete it?

I hope you can help me out here.

Kind regards

Thomas

You don’t need to do anything, it’s just a warning :slight_smile:

Hi,

Sounds good… What about the package-lock.json shout I keep it?

Bump

you can leave that file alone. The package-lock.json file keeps track of the exact version of all of the dependencies installed by npm. You can just leave it alone, it’s safe.