Skip to content

Missing regenerator-runtime #1905

@jamesjnadeau

Description

@jamesjnadeau

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. (/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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions