npx gatsby - could not resolve dependency #32112
-
DescriptionWhen using Steps to reproduce
Expected resultThe installation should be successfull. Actual resultReceived an error:
EnvironmentRun
also does not work. My current environment is:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
I'm seeing a very similar thing, upgrading from 3.6.2 to 3.8.0
|
Beta Was this translation helpful? Give feedback.
-
Hi! This is happening because of npm 7 and their new default behavior of treating packages that work just fine as "not working". If you would run npm install or npx with the For initializing a project I'd recommend you run |
Beta Was this translation helpful? Give feedback.
Hi!
This is happening because of npm 7 and their new default behavior of treating packages that work just fine as "not working". If you would run npm install or npx with the
--legacy-peer-deps
flag (npm/rfcs#283) it'll work.For initializing a project I'd recommend you run
npm init gatsby
and for setting up a starter you can alsogit clone
the project :)