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

Windows compatibility #122

Closed
tychota opened this issue Jan 28, 2016 · 4 comments
Closed

Windows compatibility #122

tychota opened this issue Jan 28, 2016 · 4 comments

Comments

@tychota
Copy link

tychota commented Jan 28, 2016

Shame on me I'm on windows (actually testing a worklow for a windows afficionados friends).

Plateform

Name Version
Windows 10
Node 5.3.0
Npm 3.52
Gatsby 0.7.7

Context

Installed gatsby using npm on windows, using cmdprompt (not a cygwin or bash shell).

Expected

gatsby new gatsby-blog

will create me a new blog.

Actual results

gatsby new gatsby-blog

throw me:

module.js:328
    throw err;
    ^

Error: Cannot find module 'C:\Users\redacted\AppData\Roaming\npm\node_modules\gatsby\bin\cli-new'
    at Function.Module._resolveFilename (module.js:326:15)
    at Function.Module._load (module.js:277:25)
    at Function.Module.runMain (module.js:430:10)
    at startup (node.js:141:18)
    at node.js:980:3

while:

node C:\User\redacted\AppData\Roaming\npm\node_modules\gatsby\bin\gatsby-new.js .\path\to\x

work flawlessly !

The End

Please say me if you have enough info ;)
If you have idea and if I shall test something, please ask !!
Sorry for bad frenglish !!

@cable729
Copy link

cable729 commented Feb 1, 2016

Here's a temporary workaround: #80 (comment).

This is hacky though and I'd prefer not to have to modify fetched node packages.

@tychota
Copy link
Author

tychota commented Feb 3, 2016

@cable729 : thanks. Did you have an idea of a PR that would work on all plateform ?

@cable729
Copy link

cable729 commented Feb 4, 2016

@tychota I haven't looked too much into it. Unfortunately, I kept running into problems with Gatsby on windows so I gave it up.

@KyleAMathews
Copy link
Contributor

@tychota @cable729 sorry about the troubles on Windows. I develop on Mac and don't have a Windows box to test on. Would love to have someone contribute a fix!

Closing in favor of earlier bug report #80

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