I have git for windows installed, but I can't run curl commands in cmd. If I type in curl, I get the following error:
'curl' is not recognized as an internal or external command, operable program or batch file.
Curl is normally included in the Git package for Windows.
If you start "Git Bash", the command "curl" should be available in your bash window.
The curl executable is located in the "bin" directory, along with all the other applications installed with git.
Related
When ever I run any command related to flutter in VS Code it returns the following:
'where' is not recognized as an internal or external command,
operable program or batch file.
Error: Unable to find git in your PATH.
exit code 1
I am on a Windows 10 Home system with Git in the system PATH variable.
Try to run the command from the command line (in the app folder).
As you can probably tell by the title, I am having difficulty with Heroku. Whenever I run heroku --version in the Command Line, I receive the error 'heroku' is not recognized as an internal or external command, operable program or batch file. I have tried uninstalling and re-installing heroku multiple times, to no success. I have included screenshots of the download steps which I took.
Specs:
Windows v10.0.18363.1198, 64-bit
heroku CLI v7.47.3
Git v2.29.2.windows.2
Download Steps:
Make sure that you add the path to heroku to PATH. In this case it would be C:\Program Files (x86)\heroku\client\bin
Make sure you restart your system and run your command again, worked for me earlier.
After the restart, check your Heroku version use heroku -v in terminal or CMD.
I installed GitHub Desktop, but it doesn't seem to have successfully set up the git command on the command line. When I try to call git, cmd gives me the error,
'git' is not recognized as an internal or external command, operable program or batch file.
The following path was added to my environment variables; is there some way I should edit this to make git work in cmd?
C:\Users\Me\AppData\Local\GitHubDesktop\bin
Find the git.exe file using WHERE git. This is the directory that should be added to your PATH environment variable.
WHERE git
Mine is in C:\Program Files\Git\cmd\git.exe.
I have C:\Program Files\Git\cmd added to the PATH environment variable.
following the docs here: http://attester.ariatemplates.com/usage/phantom.html, I am trying to install phantomjs on my windows machine.
I tried adding multiple lines to my Path system variable, and yet, I get the same error in the command prompt when I type in phantomjs --version.
" 'phantomjs' is not recognized as an internal or external command, operable program or batch file."
I added the phantomjs.exe to C:\phantomjs\bin\, and added C:\phantomjs\bin\phantomjs to the path, and any variation that I could think of, such as:
C:\phantomjs\bin\phantomjs.exe\; C:\phantomjs\bin; C:\phantomjs\bin\phantomjs\;
How am I not installing this right?
You don't need to put all the directories to the environment PATH variable.
Add only following to your path and restart your command prompt.
C:\phantomjs\bin\
Add phantomjs.exe to C:\Windows\System32 folder.
Cmd error: "sh" is not recognized as an internal or external command, operable program or batch file.
C:\Users\user>npm install -g node-curl
npm http GET https://registry.npmjs.org/node-curl
npm http 304 https://registry.npmjs.org/node-curl
> node-curl#0.1.4 install C:\Users\user\AppData\Roaming\npm\node_modules\node-cu
rl
> sh src/generate_curl_options_list.sh && node-waf configure build || true
"sh" is not recognized as an internal or external command, operable program or batch file.
"true" is not recognized as an internal or external command, operable program or batch file.
To expand on Florian's answer: You're on Windows, which doesn't have cURL or sh. You're trying to install a module that relies on your operating system offering the libcurl-library and sh, which is not shipped with Windows.
You have some options:
Write your own node-only implementation that behaves like curl.
See this question on SO: Curl equivalent in nodejs?
It goes into details of how to use the built-in http module, like curl.
Or install libcurl and sh on windows, with a tool like cygwin. I haven't tried this, and the npm module you're trying to install might still have dependencies on other unix tools that aren't solved by cygwin.
Or look for something else in http://search.npmjs.org/ that behaves like curl. Try httpsync or curly
I recommend option 1, it'll teach you basic http principles. The native modules in node already offer everything you might need curl for. :)
Well, using node-curl on windows, that doesn't have curl, is quite stupid.
Don't try.