Why gatsby-plugin-manifest cannot resolve 'gatsby'?

I'm developing a website using Gatsby and some plugins, but this site needs to have some progressive web apps features and as I read the docs you must install gatsby-plugin-manifest and gatsby-plugin-offline.

Since I installed gatsby-plugin-manifest, It only gives me a lot of error... which I couldn't even downgrade some past versions I couldn't make it work.

The error is the following one:

Error: Module not found: Error: Cannot resolve module 'gatsby' in /Users/evandro/workspace/evansantos.github.io/node_modules/gatsby-plugin-manifest
resolve module gatsby in /Users/evandro/workspace/evansantos.github.io/node_modules/gatsby-plugin-manifest
[/Users/evandro/workspace/evansantos.github.io/node_modules/gatsby/index.js.jsx]
  @ ./~/gatsby-plugin-manifest/gatsby-ssr.js 7:14-31

➜  git:(master) ✗

Upvotes: 1

Views: 918

Answers (1)

J.C
J.C

Reputation: 24

Try this command in terminal:

npm install -g gatsby-cli

Upvotes: 1

Related Questions