"sudo npm install -g gatsby-cli" results in "npm ERR! cb() never called!"

Just trying to get started with GatsbyJS. I have NPM version 6.7.0 and Node version 8.9.2.

Running sudo npm install -g gatsby-cli gets me this:

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! https://npm.community

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/wilfhorsfall/.npm/_logs/2019-04-18T10_37_00_137Z-debug.log

I’ve uploaded the log here: 2019-04-18T10_37_00_137Z-debug.log (284.7 KB)

Would love some help here.


I fixed the issue by installing the latest version of Node using NVM.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.