markteekman / accessible-astro-starter

An Accessible Starter Theme for Astro 4.0 including accessibility features such as landmarks, better focus-outline and skip-links navigation. Ships with Tailwind, Prettier and ESLint support.
https://accessible-astro.netlify.app/
MIT License
758 stars 139 forks source link

Can't build the theme #53

Closed elgud closed 1 year ago

elgud commented 1 year ago

I am trying to build this theme and I get the error:

Error: Something went wrong installing the "sharp" module

Cannot find module '../build/Release/sharp-darwin-arm64v8.node' Require stack:

Possible solutions:

Node.js v19.7.0

I am using the latest version of node.js.

When I do npm install, there are loads of vulnerabilities including 7 critical:

npm install

up to date, audited 1595 packages in 13s

306 packages are looking for funding run npm fund for details

49 vulnerabilities (3 low, 39 high, 7 critical)

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

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

Run npm audit for details.

elgud commented 1 year ago

Fixed the issue by deleting the node-modules folder and running npm install again.

markteekman commented 1 year ago

Hey @elgud! Glad to see you've found a solution to this, it's the first thing I'd suggest when npm install isn't working 🤔 Weird though that 'sharp' package, it seems to have something to do with Apples M1 chip, oddly enough. Anyway, I'll close this issue since there's a fix 🙂