JavaScript for WordPress Forums Bugs & Issues Git can not be recognised by Visual Studio Code and Windows Cmd

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #127559
    Emmab
    Participant

    I got an error when i run gatsby new hello-world command from the terminal… it says spawn git ENOENT… can you please guide what to do as visual code doesn’t recognise Git installation or anyother way to create a gatsby starter template… i already installed latest version of Git for windows and enabled it for visual studio code before running the gatsby new command.

    Git Path shows Null: https://prnt.sc/q6kswb how to fix it!
    Whereas on Git extention settings it shows some path: https://prnt.sc/q6ktb2

    Tha actual installation is at C:\\Users\\Emma\\AppData\\Local\\GitHubDesktop.exe

    Please advise.

    #127562
    Zac Gordon
    Keymaster

    Okay, I am not too sure with the specific error you have or setup you are doing with Git.

    However, to start with a basic test, what happens when you try to simply clone a git repository? Does that work?

    #127591
    Emmab
    Participant

    I clone the basic gatsby starter template https://github.com/gatsbyjs/gatsby-starter-blog.git using Windows GitHubDesktop and then open that repository with visual studio code. Its running on my localhost. But on the second step when I run the npm install –save gatsby-source-graphql and then update the gatsby-config.js as you see in this screenshot https://prnt.sc/q6mauf this error appears when I save and run gatsby build command. how should I connect this gatsby starter theme to my live wordpress website graphql.

    My wordpress website is live and I have been asked to redesign the website to achieve better performance and design so I am following you tutorials to make this work.

    #127608
    Zac Gordon
    Keymaster

    Support is for active members and folks who have purchased courses, just waiting to verify your membership status. Thanks for understanding!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.