Netlify cli failing to update

I keep receiving this message in Netlify-cli even though my package.json indicates that I am using the version it is telling me to update to.

image
image

Running Windows.

Hi, @kylesloper. Did you run npm i in the local repo directory? That is necessary to update the node dependencies for the repo. That should also update the netlify-cli package installed there. (Think of it as a superset of the npm i netlify-cli command.)

Also, we would normally recommend using a global install of Netlify CLI with this:

npm i -g netlify-cli

However, you might have reasons Iā€™m not aware of to use locally pinned versions of Netlify CLI.

1 Like