fabien0102 / gatsby-starter

Gatsby 2.0 starter with typescript and many cools dev tools
386 stars 99 forks source link

Fails to build/develop (on Windows?) #56

Closed arlobelshee closed 6 years ago

arlobelshee commented 6 years ago

On a clean starter, gatsby develop results in unhandled exception cannot find module 'sharp'. During gatsby new, npm warned me "skipping optional dependency: sharp".

Please make sharp either truly optional or truly required (and installed). As is, the starter builds a site that cannot be used.

I assume this must be OS-specific, since it's a total-fail bug.

fabien0102 commented 6 years ago

^^ Classic! Don't worry, I'm also on windows 😉 https://www.gatsbyjs.org/docs/gatsby-on-windows/#gatsby-on-windows I write an article about this kind of issue ^^

npm install windows-build-tools -g on an admin PowerShell console.

and reinstall everything from scratch

arlobelshee commented 6 years ago

Thank you! Fixed.