Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Globally installed Gatsby 0.8 not running #136

Closed
cutemachine opened this issue Feb 21, 2016 · 11 comments
Closed

Globally installed Gatsby 0.8 not running #136

cutemachine opened this issue Feb 21, 2016 · 11 comments

Comments

@cutemachine
Copy link

I just upgraded Gatsby to the latest version. Unfortunately it is not running anymore. So, I did a fresh install, but with the same result.

This is what I get when I try to run gatsby --version. When I change bin/index.js from import to require I get the version number (0.8).

I am on a Mac with node.js 5.6.0.

/usr/local/lib/node_modules/gatsby/bin/index.js:1
(function (exports, require, module, __filename, __dirname) { import program from 'commander'
                                                              ^^^^^^

SyntaxError: Unexpected reserved word
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:413:25)
    at Module._extensions..js (module.js:452:10)
    at Object.require.extensions.(anonymous function) [as .js] (/usr/local/lib/node_modules/gatsby/node_modules/babel-core/lib/api/register/node.js:214:7)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/gatsby/bin/cli.js:4:1)
    at Module._compile (module.js:434:26)

PS: Many thanks for your great work. I love Gatsby.

@gesposito
Copy link
Contributor

Can confirm this on my machine (Node 4.3.1).
I was able to get Gatsby 0.8 working (linked) by adding webpack-hot-middleware.

@KyleAMathews
Copy link
Contributor

These are two separate problems. @gesposito I merged your missing dependency and I just added a commit (f8edc05) to restore the /bin code to not use the import syntax.

Gah, got to get integration tests running on Travis (PRs accepted :D)

@KyleAMathews
Copy link
Contributor

Just published 0.8.1. If you two could verify this version works and report back here that'd be great!

@gesposito
Copy link
Contributor

Sorry, editing my previous comment, looks like it didn't unlink properly, I still get errors with 0.8.1

node/v4.3.1/lib/node_modules/gatsby/bin/develop.js:10
let develop
^^^

SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode

@KyleAMathews
Copy link
Contributor

Ok, try again.

@KyleAMathews
Copy link
Contributor

(and thanks for the quick testing)

@gesposito
Copy link
Contributor

0.8.2: Error: Cannot find module 'cssnano'
it also happened on 0.8.0 but I didn't push the dependency cause it looked fixed after webpack-hot-middleware

@KyleAMathews
Copy link
Contributor

Ok, just added it and am publishing 0.8.3. Good thing versions are cheap 👯

@gesposito
Copy link
Contributor

Cool, 0.8.3 is good to go! (for me) 😄

@KyleAMathews
Copy link
Contributor

Yeah! 🎆 Now nap then prepare my talk on Gatsby for tomorrow's ReactConf

@gesposito
Copy link
Contributor

Looking forward to hear your lightning talk! Good luck :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants