windedge / gatsby-tailwind-serif

A Gatsby theme based on gatsby-serif-theme, rewrite with Tailwind CSS.
https://gatsby-tailwind-serif.netlify.app/
MIT License
27 stars 20 forks source link

Issue with running the theme #31

Open apoorvachikara opened 3 years ago

apoorvachikara commented 3 years ago

I have installed all the dependencies and peer-dependencies in the theme. My node version is 14+ and npm is 7+. When I run the theme, It gives me an error. Can somebody help me?

apoorvachikara$ npm i 

up to date, audited 2588 packages in 29s

62 vulnerabilities (5 low, 35 moderate, 21 high, 1 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues possible (including breaking changes), run:
  npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.
AV:gatsby-tailwind-serif-master apoorvachikara$ npm start 

> @windedge/gatsby-tailwind-serif@1.0.0 start
> npm run develop

> @windedge/gatsby-tailwind-serif@1.0.0 develop
> gatsby develop

success open and validate gatsby-configs - 0.040s

 ERROR 

Error in "/Users/apoorvachikara/Downloads/gatsby-tailwind-serif-master/node_modules/gatsby-transformer-sharp/gatsby-node.js":
Something went wrong installing the "sharp" module

Cannot find module '../build/Release/sharp.node'

- Run "npm rebuild --verbose sharp" and look for errors
- Consult the installation documentation at https://sharp.pixelplumbing.com/install
- Search for this error at https://github.com/lovell/sharp/issues

  Error: Something went wrong installing the "sharp" module
  Cannot find module '../build/Release/sharp.node'
  - Run "npm rebuild --verbose sharp" and look for errors
  - Consult the installation documentation at https://sharp.pixelplumbing.com/install
  - Search for this error at https://github.com/lovell/sharp/issues

  - constructor.js:34 Object.<anonymous>
    [gatsby-tailwind-serif-master]/[gatsby-plugin-sharp]/[sharp]/lib/constructor.js:34:9

  - v8-compile-cache.js:178 Module._compile
    [gatsby-tailwind-serif-master]/[v8-compile-cache]/v8-compile-cache.js:178:30

  - loader.js:789 Object.Module._extensions..js
    internal/modules/cjs/loader.js:789:10

  - loader.js:653 Module.load
    internal/modules/cjs/loader.js:653:32

  - loader.js:593 tryModuleLoad
    internal/modules/cjs/loader.js:593:12

  - loader.js:585 Function.Module._load
    internal/modules/cjs/loader.js:585:3

  - loader.js:692 Module.require
    internal/modules/cjs/loader.js:692:17

  - v8-compile-cache.js:159 require
    [gatsby-tailwind-serif-master]/[v8-compile-cache]/v8-compile-cache.js:159:20

  - index.js:3 Object.<anonymous>
    [gatsby-tailwind-serif-master]/[gatsby-plugin-sharp]/[sharp]/lib/index.js:3:15

  - v8-compile-cache.js:178 Module._compile
    [gatsby-tailwind-serif-master]/[v8-compile-cache]/v8-compile-cache.js:178:30

  - loader.js:789 Object.Module._extensions..js
    internal/modules/cjs/loader.js:789:10

  - loader.js:653 Module.load
    internal/modules/cjs/loader.js:653:32

  - loader.js:593 tryModuleLoad
    internal/modules/cjs/loader.js:593:12

  - loader.js:585 Function.Module._load
    internal/modules/cjs/loader.js:585:3

  - loader.js:692 Module.require
    internal/modules/cjs/loader.js:692:17

  - v8-compile-cache.js:159 require
    [gatsby-tailwind-serif-master]/[v8-compile-cache]/v8-compile-cache.js:159:20

not finished load plugins - 0.495s

I have re-installed the sharp module, but the issues persist. The steps I have followed are below:

1) Clone the repo 2) npm i 3) installed the peer-dependency 4) npm start

Please let me know if you need any more information.