Search code examples
gatsby

How to solve Error: Command failed: npm install while installing gatsby starter theme


I am trying to install a gatsby starter theme on my project directory, but instead I am getting this error message which I don't really know how to tackle. Error message:

Image

Command failed: npm install
Error: Command failed: npm install

  • index.js:236 Promise.all.then.arr
    [npm]/[gatsby-cli]/[execa]/index.js:236:11
  • next_tick.js:68 process._tickCallback
    internal/process/next_tick.js:68:7

Solution

  • I have tested it on my mac and had no issues running npm install.

    So I guess it has nothing to do with Gatsby itself. Your NodeJS version might be a bit older than the current version v12.7.0. I'm running v12.6.0 so I would recommend you to upgrade NodeJS and try it again.