gatsby-wpgraphql-inline-images icon indicating copy to clipboard operation
gatsby-wpgraphql-inline-images copied to clipboard

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"

Open louiechristie opened this issue 4 years ago • 1 comments

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

  • Clone this repo: https://github.com/louiechristie/newcrossities
  • Change the version of gatsby to >= 2.2.0
  • Run this command:
yarn

louiechristie avatar Sep 01 '20 13:09 louiechristie

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"
  },

Bbahri avatar Sep 14 '20 16:09 Bbahri