gatsby image plugin

Shell
const path = require(`path`)

module.exports = {
  plugins: [
    {
      resolve: `gatsby-source-filesystem`,
      options: {
        name: `images`,
        path: path.join(__dirname, `src`, `images`),
      },
    },
    `gatsby-plugin-sharp`,
    `gatsby-transformer-sharp`,
  ],
}npm install --save gatsby-transformer-sharp gatsby-plugin-sharpnpm install --save gatsby-transformer-sharp gatsby-plugin-sharp

# Yarn
yarn add gatsby-transformer-sharp gatsby-plugin-sharp

# gatsby-config.json
plugins: [`gatsby-transformer-sharp`, `gatsby-plugin-sharp`]
Source

Also in Shell: