Comments (2)
Try deleting package-lock.json
and node_modules
and then do an npm install
. I’ve run into situations like this where things get cached in the lock file.
from spacebook.
tldr: Update the version of @11ty/eleventy-img
.
Having deleted package-lock.json
and 'node_modules, running
npm install` threw a bunch of errors, including:
npm ERR! ERR! sharp Prebuilt libvips 8.10.0 binaries are not yet available for darwin-arm64v8
npm ERR! info sharp Attempting to build from source via node-gyp but this may fail due to the above error
npm ERR! info sharp Please see https://sharp.pixelplumbing.com/install for required dependencies
Going to the website from that link showed me:
Apple M1
Prebuilt sharp and libvips binaries have been provided for macOS on ARM64 since sharp v0.29.0.
package.json
does not seem to contain sharp
; presumably this is because prebuilt binaries are not Javascript packages. Apparently sharp is included in spacebook through the eleventy-plugin-lazyimages package, in which the Sharp dependency was updated to "sharp": ">=0.29.3"
in November 2021 which is later than 0.29.0.
The lazysizes and markdown-it-image-lazysizes dependencies do not seem to bring in sharp, so that's probably not the issue.
Now we come to 11ty/eleventy-img. As soon as I deleted that line from package.json
, I was able to npm install
without throwing an error. My site started building locally as soon as I went into eleventy.js
, commented out const Image = require("@11ty/eleventy-img");
, and changed let metadata = await Image(
etc to `let metadata = {}'.
I put eleventy.js
back the way it was, changed "@11ty/eleventy-img": "^0.5.0",
to "@11ty/eleventy-img": "^=2.0.1",
in package.json
, and the site seems to work well.
from spacebook.
Related Issues (20)
- Streamlined starter content HOT 1
- Flash of Unstyled Content (FOUC)
- Link to markdown tags returns 404 HOT 2
- Change Tailwind CSS HOT 6
- A couple more Dark Mode Styling Issues HOT 2
- Enable dark mode by default HOT 2
- Menu triggered by hamburger not sticky HOT 4
- Backlinks support HOT 1
- Dead link in the doc
- npm install creates errors - I am using node v16.7.0 HOT 1
- Table head colour does not contrast with darkmode enabled HOT 1
- Turning Spacebook into a PWA
- custom themes for spacebook
- Password prompt visible after login
- Tailwind 3?
- NetlifyCMS uses "pages" instead of "content/pages"
- Custom links in TOC
- a footer nav are not inline, and the left < has an incorrect orientation
- Fixed: Browser Compatibility: Safari, Firefox iOS
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spacebook.