Giter Site home page Giter Site logo

Comments (52)

kterry1 avatar kterry1 commented on August 15, 2024 13

I just ran npx git://gist.github.com/bb452ffe53a5caa3600197e1d8005733.git instead of npx https://gist.github.com/bb452ffe53a5caa3600197e1d8005733.git and that fixed it

from react-fundamentals.

jsehull avatar jsehull commented on August 15, 2024 5

@merodiro (thanks for the discord shoutout fella), I think you're right, I added it to the USER section at the top thinking I was copying the solution steps

@cbtsao47 I deleted the variable paths in the top area

This may be solved for me (but I also wiped WSL and installed WSL2 and got it working there first ha 😬, so I can't say for certain that this solves it, but I believe it does

image
image

from react-fundamentals.

jsehull avatar jsehull commented on August 15, 2024 4

No VPN for me 🤔

from react-fundamentals.

kentcdodds avatar kentcdodds commented on August 15, 2024 3

Thanks for the conversation here folks (sorry I haven't been able to reply yet... been a little... busy 😅). If @jsehull's solution works for others, then we may want to include a reference to this issue in the README.

from react-fundamentals.

azurekca avatar azurekca commented on August 15, 2024 2

I just had this same problem. The instructions on https://epicreact.dev/modules/react-fundamentals/react-fundamentals-welcome instructed to use npm run setup --silent, which failed for me. I used node setup instead and it worked.

from react-fundamentals.

dmarshall83 avatar dmarshall83 commented on August 15, 2024 1

I had a similar error saying that is could not access the URL for the command. Turns out I had my VPN on. I turned that off and it worked fine. Maybe that will help.

from react-fundamentals.

dmarshall83 avatar dmarshall83 commented on August 15, 2024 1

@jsehull Are you using any kind of proxy on your network setup? That was one of the other things I came across when I was trying to fix it. Hope that helps.

from react-fundamentals.

jsehull avatar jsehull commented on August 15, 2024 1

Yeah I was speaking with some previously and had linked this in the #react-fundamentals channel. Unsure what the proper Tech channel is, ty.

from react-fundamentals.

merodiro avatar merodiro commented on August 15, 2024 1

You need to add them to the PATH not as their own env variables
From env variables click on Path > edit > new > and enter the values in the stack overflow answer one at a time

from react-fundamentals.

kentcdodds avatar kentcdodds commented on August 15, 2024 1

It's possible I could use this mechanism as a fallback. Not as nice an experience, but better than having to figure out the workarounds we've explored here. Thoughts?

from react-fundamentals.

HazTheGoat avatar HazTheGoat commented on August 15, 2024 1

I had the same problem as everyone else. I tried using powershell (in administration mode) and did the same command as before, and it worked.

from react-fundamentals.

kentcdodds avatar kentcdodds commented on August 15, 2024 1

Hi @dandelionadia, you could do a find/replace with your editor. That's probably the easiest.

from react-fundamentals.

merodiro avatar merodiro commented on August 15, 2024 1

Yes, as far as I can see with the errors npx https://... and npx git://... work or break in the same way, and the only reason it worked for who tried it is because they tried running it directly

I created a repo to reproduce the issue https://github.com/merodiro/npx-problem to make sure it's not related to anything in this repo

from react-fundamentals.

kentcdodds avatar kentcdodds commented on August 15, 2024 1

That's brilliant. I'm guessing you could use that to report an issue to the npm client: https://github.com/npm/cli

For now, I'll update everything to show node scripts/setup.js instead of npm run setup. In fact, maybe I'll just make it node setup. That'll match the node go in the bookshelf app. And I'll switch it back to the https:// version.

Thanks so much for your investigation here @merodiro!

@all-contributors please add @merodiro for ideas

from react-fundamentals.

kentcdodds avatar kentcdodds commented on August 15, 2024 1

I've got all the repos updated to solve this problem. Thanks everyone!

from react-fundamentals.

cbtsao47 avatar cbtsao47 commented on August 15, 2024

Same thing happening on my end as well.
I've also tried to

set "PATH=%PATH%;C:\Program Files\Git\mingw64\libexec\git-core"

directly in the terminal.
It is still not working.

from react-fundamentals.

JacobMGEvans avatar JacobMGEvans commented on August 15, 2024

I had a similar error saying that is could not access the URL for the command. Turns out I had my VPN on. I turned that off and it worked fine. Maybe that will help.
If this solution doesn't work for @cbtsao47 or @jsehull, please notify on here again 😄

from react-fundamentals.

jsehull avatar jsehull commented on August 15, 2024

Not right now, just some traditional, local development. npm and yarn commands have been working for years on this machine. Really unsure how to address it. I am special if I'm the only one though, right???

from react-fundamentals.

JacobMGEvans avatar JacobMGEvans commented on August 15, 2024

Have you checked with people in the Discord Epic React #General channel? @jsehull

Edit: I brought it up and hopefully someone can find a fix for you

from react-fundamentals.

JacobMGEvans avatar JacobMGEvans commented on August 15, 2024

Yeah I was speaking with some previously and had linked this in the #react-fundamentals channel. Unsure what the proper Tech channel is, ty.

Gotcha, yes that is a good channel for it as well, I brought it up again for you.

from react-fundamentals.

cbtsao47 avatar cbtsao47 commented on August 15, 2024

@JacobMGEvans No VPN for me either 😂

from react-fundamentals.

cbtsao47 avatar cbtsao47 commented on August 15, 2024

You need to add them to the PATH not as their own env variables
From env variables click on Path > edit > new > and enter the values in the stack overflow answer one at a time

I believe that's exactly what we tried. 😂

from react-fundamentals.

kentcdodds avatar kentcdodds commented on August 15, 2024

@kterry1,

Oh, now that is interesting... I'll have to test it out and see whether that works better for everyone. Thanks!

from react-fundamentals.

kentcdodds avatar kentcdodds commented on August 15, 2024

Ah, bummer, when I try that I get:

The authenticity of host 'gist.github.com (140.82.114.4)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
Are you sure you want to continue connecting (yes/no/[fingerprint])?

@kterry1, did you get that when you changed it?

from react-fundamentals.

kterry1 avatar kterry1 commented on August 15, 2024

from react-fundamentals.

shankstee avatar shankstee commented on August 15, 2024

Yeah @kterry1 npx git://gist.github.com/bb452ffe53a5caa3600197e1d8005733.git resolved it for my as well, thank you.

from react-fundamentals.

merodiro avatar merodiro commented on August 15, 2024

I tried to run npx git://gist.github.com/bb452ffe53a5caa3600197e1d8005733.git from cmd and WSL and I didn't get that warning
I deleted github.com from known hosts to be sure but still don't get this message
I only get it when I run npx ssh://[email protected]:bb452ffe53a5caa3600197e1d8005733.git

from react-fundamentals.

tigerabrodi avatar tigerabrodi commented on August 15, 2024

I just ran npx git://gist.github.com/bb452ffe53a5caa3600197e1d8005733.git instead of npx https://gist.github.com/bb452ffe53a5caa3600197e1d8005733.git and that fixed it

This also worked for me @kentcdodds 👏 . @kterry1 Thanks 🙏. PS. I am on windows too. @kterry1 do I need to run this every time for the next sections? 🤔

from react-fundamentals.

Leandrocoelho1 avatar Leandrocoelho1 commented on August 15, 2024

I just ran npx git://gist.github.com/bb452ffe53a5caa3600197e1d8005733.git instead of npx https://gist.github.com/bb452ffe53a5caa3600197e1d8005733.git and that fixed it

Worked for me too. Thanks @kterry1 !!

from react-fundamentals.

merodiro avatar merodiro commented on August 15, 2024

This also worked for me @kentcdodds 👏 . @kterry1 Thanks 🙏. PS. I am on windows too. @kterry1 do I need to run this every time for the next sections? 🤔

You can do the StackOverflow solution and add it to Path one time only

from react-fundamentals.

merodiro avatar merodiro commented on August 15, 2024

@kentcdodds I tried to investigate what is causing the issue, it's seems something related to spawnSync, not the gist's URL

I removed C:\Program Files\Git\mingw64\libexec\git-core from the path so I reproduce it again
running npx "https://gist.github.com/kentcdodds/bb452ffe53a5caa3600197e1d8005733" -q directly works for me but running it from npm run setup doesn't work, and I also tried updating scripts/setup.js to use git:// but that didn't do any difference

from react-fundamentals.

kentcdodds avatar kentcdodds commented on August 15, 2024

Ah! Interesting. Thanks for that investigation @merodiro. Maybe we need to use execSync instead? Or would the async version work?

from react-fundamentals.

merodiro avatar merodiro commented on August 15, 2024

I tried both of them but they didn't work and I got the same error

from react-fundamentals.

kentcdodds avatar kentcdodds commented on August 15, 2024

I'm sorry this has been so much trouble for a handful of people. For most people things seem to be working smoothly, for the rest of you folks I'm considering different options to improve things.

In the mean time, if you're just totally stuck, you can try this... I don't like it, but it's better than being stuck.

Copy/paste the exercise code into a Codesandbox and most of the exercises should work fine. For example: https://codesandbox.io/s/stupefied-austin-zmeqj?file=/src/exercise/index.js

For the HTML exercises, you could copy/paste those into a jsbin: https://jsbin.com/hubaqekehu/edit?html,output

This should be enough to get you going until you can figure out why things aren't installing properly.

I've also reached out to the codesandbox team to see whether they can fix the problems with the workshop working as it is directly in codesandbox (so you don't have to copy/paste things). Because this should work, but it's not: https://codesandbox.io/s/github/kentcdodds/react-fundamentals

You'll hear from me if they get that fixed. Thank you again for your persistence and patience!

from react-fundamentals.

median-man avatar median-man commented on August 15, 2024

Same thing happening on my end as well.
I've also tried to

set "PATH=%PATH%;C:\Program Files\Git\mingw64\libexec\git-core"

directly in the terminal.
It is still not working.

I may be wrong, but I'm pretty sure you need to escape the backslashes. Have you tried set "PATH=%PATH%;C:\\Program Files\\Git\\mingw64\\libexec\\git-core"?

from react-fundamentals.

OrhanOzkercin avatar OrhanOzkercin commented on August 15, 2024

I have the same problem, tried solutions above but did not worked for me

from react-fundamentals.

chri5bot avatar chri5bot commented on August 15, 2024

I just ran npx git://gist.github.com/bb452ffe53a5caa3600197e1d8005733.git instead of npx https://gist.github.com/bb452ffe53a5caa3600197e1d8005733.git and that fixed it

This solution works for me too. Thanks man!

BTW: I'm working on windows SO too.

from react-fundamentals.

VigneshMurugan avatar VigneshMurugan commented on August 15, 2024

Probably too late into this issue. But for me setting PATH and restarting the terminal worked like a charm !

from react-fundamentals.

dandelionadia avatar dandelionadia commented on August 15, 2024

I've had the same problem and I tried this solution npx git://gist.github.com/bb452ffe53a5caa3600197e1d8005733.git. Now everything is great but I've got another problem. Now I have my email in the feedback form two times:

name@[email protected]

Please can you recommend me how I can change it and do not edit it every time by myself?

from react-fundamentals.

kentcdodds avatar kentcdodds commented on August 15, 2024

Also, I just updated the autofill script so getting a double-email like that shouldn't happen again.

from react-fundamentals.

kentcdodds avatar kentcdodds commented on August 15, 2024

Ok, I just updated to use the npx git:// URL. Hopefully that fixes issues for everyone and we don't have problems like this for folks: https://github.com/kentcdodds/react-fundamentals/issues/27#issuecomment-701127373

If we do, then I could add an isWindows condition. I want to make sure that this works flawlessly for everyone. Thanks everyone for your patience!

from react-fundamentals.

merodiro avatar merodiro commented on August 15, 2024

@kentcdodds I just tested it and it still doesn't work, running npx "git://gist.github.com/bb452ffe53a5caa3600197e1d8005733.git" -q in the terminal works fine, and running node script/setup.js directly works fine but the problem still happens when I run npm run setup
it seems to be a bug in npm itself, I got the same problem when I replaced the setup script with "setup": "npx git://gist.github.com/bb452ffe53a5caa3600197e1d8005733.git -q" so it's not related to spawnSync as I assumed before

from react-fundamentals.

kentcdodds avatar kentcdodds commented on August 15, 2024

Oh, interesting! I wonder what's causing this 🤔 What exactly happens for you when you run it using npm run setup @merodiro?

from react-fundamentals.

merodiro avatar merodiro commented on August 15, 2024

@kentcdodds I get the same error they get that git-sh-setup: file not found
the problem happens when you run npx <gist> inside npm scripts, it's not a problem with something in your gist, I tried another gist and got the same error
Currently the working solutions are:

  • the StackOverflow's answer about adding it to the path and restart the terminal
  • running the npx command directly
  • running the setup script directly node script/setup.js

from react-fundamentals.

kentcdodds avatar kentcdodds commented on August 15, 2024

Ah! So it works ok if you run it with node directly? In that case, maybe we should switch it to running the setup script. I think that's simple enough.

I'll update all the repos to suggest that instead 👍

from react-fundamentals.

kentcdodds avatar kentcdodds commented on August 15, 2024

Quick question, if you use node script/setup.js does it work even with the npx https://... URL, or do we still have to use the git:// URL? Reason I ask is because I think it may concern people to see just some random gist, where it may make people feel better to see my username in there.

from react-fundamentals.

allcontributors avatar allcontributors commented on August 15, 2024

@kentcdodds

I've put up a pull request to add @merodiro! 🎉

from react-fundamentals.

merodiro avatar merodiro commented on August 15, 2024

No problem, happy to help
I will try to write a better description and report the issue to npm team this weekend
I tried adding CI to the repo to display the errors better, it works on appveyor butbreaks as expected on CircleCI

from react-fundamentals.

ethernal avatar ethernal commented on August 15, 2024

@kentcdodds I had the same issue last night and checked again and it seems not fixed I cloned the react-hooks just few minutes ago and the script failed with same error. If I add the ...\Git\mingw64\libexec\git-core to SYSTEM ENV variables it will work again.

Can someone else confirm if this still stands or is it fixed and my system is buggy. PS. you must close the terminal and start it again for Env Vars to be "updated" for the console, I had to keep it closed for a few minutes so that was a bit unexpected.

from react-fundamentals.

kentcdodds avatar kentcdodds commented on August 15, 2024

If anyone can figure out a good way to detect this issue, then we could provide a much better warning and fix message in the setup script (similar to what we do for detecting the presence of npx).

Help and contributions is appreciated :)

from react-fundamentals.

Aprillion avatar Aprillion commented on August 15, 2024

FYI: this error happened to me on Sunday - but only in git bash, npm run setup worked fine for me in Cmd..

from react-fundamentals.

RobotCherries avatar RobotCherries commented on August 15, 2024

I had the same problem as everyone else. I tried using powershell (in administration mode) and did the same command as before, and it worked.

This worked perfectly for me.

If anyone else has this issue, try running the script in cmd / powershell, possibly with admin rights.

from react-fundamentals.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.