In my machine, gatsby v4.22.0 is installed and the theme that I want my portfolio to be on a theme in Gatsby v3

Viewed 14

I have tried to uninstall the Gatsby-cli that I installed globally earlier

PS C:\Users\bonny\Desktop\My Gatsby Website\my-site> npm uninstall -g gatsby-cli

And the response was

removed 366 packages, and audited 1 package in 2s

so to make sure that gatsby is no longer in my mashine I tested by checking on the version

PS C:\Users\bonny\Desktop\My Gatsby Website\my-site> gatsby --version

this was the responce

gatsby : The term 'gatsby' is not recognized as the name of a cmdlet, function, script file, 
  or 
  operable program. Check the spelling of the name, or if a path was included, verify that the path is     
correct and try again.
At line:1 char:1
+ gatsby --version
+ ~~~~~~
    + CategoryInfo          : ObjectNotFound: (gatsby:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException  ```

so I went forward and did this

PS C:\Users\bonny\Desktop\My Gatsby Website\my-site> npm install gatsby@3.14

but nothing happened... Because when I checked the Gatsby version in my machine an error appeared

0 Answers
Related