gatsby: Missing regenerator-runtime

Encountered this error when trying things out for the first time, I’m using the latest version, aka i installed with npm install -g gatsby-cli@latest

I was getting the following error: chronos@localhost ~/Downloads/Code $ gatsby new tutorial-part-one https://github.com/gatsbyjs/gatsby-starter-hello-world module.js:327 throw err; ^

Error: Cannot find module ‘regenerator-runtime/runtime’ at Function.Module._resolveFilename (module.js:325:15) at Function.Module._load (module.js:276:25) at Module.require (module.js:353:17) at require (internal/module.js:12:17) at Object.<anonymous> (/usr/local/share/nvm/versions/node/v4.8.4/lib/node_modules/gatsby-cli/index.js:92:1) at Module._compile (module.js:409:26) at Object.Module._extensions…js (module.js:416:10) at Module.load (module.js:343:32) at Function.Module._load (module.js:300:12) at Function.Module.runMain (module.js:441:10)

I’m using a chromebook with node installed on it through chromebrew, so maybe I’m the problem. I was able to fix it by running a npm install regenerator-runtime in the gatsby-cli install location, that seems to have fixed my issue.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 2
  • Comments: 18 (11 by maintainers)

Most upvoted comments

Why not jus add regenerator-runtime to package.json for gatsby-cli?