Unlock seamless workflows and faster delivery with our latest releases- get the details

Issue with unsupported engine in Gridsome project resolved by removing engine options in package.json.

3 replies
Last updated: Oct 21, 2021
Hey everyone! I am starting a new sanity project with gridsome and am running into the following terminal error:
npm ERR! engine Unsupported engine
npm ERR! engine Not compatible with your version of node/npm: sanity-gridsome@1.0.5
npm ERR! notsup Not compatible with your version of node/npm: sanity-gridsome@1.0.5
npm ERR! notsup Required: {"npm":"^6.10.0","node":"^14.1.0"}
npm ERR! notsup Actual:   {"npm":"8.1.0","node":"v14.18.1"}
I have used Sanity and Gridsome a lot in the past together, but I did notice there was a recent update to the template/soure-plugin a couple months ago so maybe this might be connected? Perhaps I am just doing something wrong as well.. I have the latest stable versions of npm and node downloaded. All I did was create a sanity template through the installer on
Sanity.io and then did a npm install in the root folder after cloning the repo locally.
Seems to be an issue with Lerna as the web/studio folders both work after an npm install.
Oct 20, 2021, 6:16 PM
user M
I found the issue. Not related to Lerna..
The issue was the engine options within the root package.json file. I first deleted the package-lock.json files and took out the
engine
and
engineStrict
options and it worked perfectly. I would suggest to take those out in the Gridsome template starter unless its absolutely necessary. I think this may also be the issue that others are having as well upon getting an error when starting up development. Hope this help!:)
Oct 21, 2021, 7:15 PM
user M
I found the issue. Not related to Lerna..
The issue was the engine options within the root package.json file. I first deleted the package-lock.json files and took out the
engine
and
engineStrict
options and it worked perfectly. I would suggest to take those out in the Gridsome template starter unless its absolutely necessary. I think this may also be the issue that others are having as well upon getting an error when starting up development. Hope this help!:)
Oct 21, 2021, 7:15 PM
Very helpful User! Thanks so much for the update. I'll pass this along to the applications team.
Oct 21, 2021, 7:18 PM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?