0

Any help would be appreciated.

I have created package.json by

npm init

Installed gatsby and gatsby-cli modules as below:

npm install gatsby gatsby-cli

Opened the terminal to check the gatsby version

gatsby -v

Its giving me the error:

$ gatsby -v bash: gatsby: command not found

I could see similar problem raised on stack overflow, but the solution provided there is not helping me to resolve.

Nandy
  • 666
  • 1
  • 12
  • 27

1 Answers1

0

Is gatsby and gatsby-cli are installed locally in project?

If it is, you can alternatively execute command via "script" attribrute in package.json or run it directly via node_modules/.bin.

r4yr1ffy
  • 135
  • 1
  • 2
  • 8