progital / gatsby-wpgraphql-inline-images

Solution for Gatsby and WPGraphQL sourced content. Downloads images locally.
MIT License
35 stars 12 forks source link

error An unexpected error occurred: "could not find a copy of gatsby to link in /[project folder]/node_modules/gatsby-wpgraphql-inline-images/node_modules" #37

Open louiechristie opened 4 years ago

louiechristie commented 4 years ago

Environment

Gatsby version >= 2.22.00 Rest of versions in package.json: https://github.com/louiechristie/newcrossities/blob/559b283e6f0e1a91d51639d7b0a47e37a1c689a1/package.json

Command

yarn

Gives error

error An unexpected error occurred: "could not find a copy of gatsby to link in /[project folder]/node_modules/gatsby-wpgraphql-inline-images/node_modules"

How to replicate

Bbahri commented 4 years ago

I got the same error trying to install it with Yarn.

This is the dependecies I have in my project:

"dependencies": {
    "@apollo/client": "^3.1.5",
    "apollo-boost": "^0.4.9",
    "cross-fetch": "^3.0.5",
    "gatsby": "^2.24.26",
    "gatsby-background-image": "^1.1.2",
    "gatsby-image": "^2.4.14",
    "gatsby-plugin-instagram-embed": "^2.0.1",
    "gatsby-plugin-optimize-svgs": "^1.0.4",
    "gatsby-plugin-react-helmet": "^3.3.10",
    "gatsby-plugin-sass": "^2.3.12",
    "gatsby-plugin-sharp": "^2.6.24",
    "gatsby-plugin-web-font-loader": "^1.0.4",
    "gatsby-source-filesystem": "^2.3.23",
    "gatsby-source-wordpress-experimental": "^1.3.8",
    "gatsby-transformer-sharp": "^2.5.12",
    "graphql-tag": "^2.11.0",
    "node-sass": "^4.14.1",
    "react": "^16.12.0",
    "react-dom": "^16.12.0",
    "react-helmet": "^6.1.0",
    "swiper": "^6.1.3"
  },
  "devDependencies": {
    "prettier": "2.0.5"
  },