Commands in git-lab-runner on windows machine not working - cmd

I have a gitlab-runner installed on my windows 10.
When I try to use commands like pip and sh in my .gitlab-ci.yml file the runner does not recognize these commands even though they are recognized in my windows machine when run using cmd.
All the environment variables have been setup properly on my windows machine.
i.e pip works on my windows machine but not on my gitlab-runner.
Refer this link
My config.toml file has been set to "cmd".
Error seen: 'pip' is not recognized as an internal or external command,
operable program or batch file.

setting
before_script:
- SET SH_HOME=C:\cygwin64
resolved the issue referring this question

Related

how to use redis in windows 10 from .msi installer

I have questioon about how to run redis in windows 10. what i have do is :
I have install redis use .msi and my redis are run in services, but when i want run redis-cli in cmd, i got error like this :
C:\WINDOWS\system32>redis-cli
'redis-cli' is not recognized as an internal or external command,
operable program or batch file.
how to fix this problem ? and how to run redis in windows locally ? it is need to add my redis to environtment or something like that ?
Do the first option only if you have not shutdown your computer and not closed you terminal after installation
Close your terminal open again and try running redis-cli, if that doesn't works then do below,
Uninstall and Reinstall again, while reinstalling make sure that you check "Add the redis installation folder to the PATH environment variable"

'mongoimport' is not recognized as an internal or external command, operable program or batch file

I'm running Windows 10 and calling !mongoimport -d osm -c bham --file bham.json using Python 3.85 in Jupyter Notebook, from a conda environment.
I get 'mongoimport' is not recognized as an internal or external command, operable program or batch file. and the file is not imported.
I have added the MongoDB tools bin folder and the server bin folder to PATH:
I have also tried:
Copying mongoimport.exe to the server bin folder.
Putting .\ before mongoimport in the command.
Calling the file directly !<full file path>.
Removing the \ after bin in PATH.
This is the only MongoDB installation I have, and I can see that the database service is running, as is Compass.
It worked on this computer before I did a clean install.
Thanks!
Edit: change tags
Turns out restarting my computer did the trick. Restarting the kernel after setting the PATH variable was not it. So, it might just have been restarting the command prompt from which Jupyter Notebook was launched after setting the PATH variable that did it.

'flask' is not recognized as an internal or external command, operable program or batch file

I have installed pip and flask in the directory. After writing flask code in a file, I have run the command flask run and get the following error:
'flask' is not recognized as an internal or external command, operable program or batch file
Note: I am in the directory where pip and flask are installed, and the file is also located here which I want to run.
This may be because you are using virtual environment.
So after activating virtual environment, install flask in the environment and try to run the code.
uninstall flask and re-install it using the same commands it worked for me.
Note: I wasn't using any virtual environment.

Issues installing PhantomJS for windows: command not recognized

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.

Need Windows Command

I am using this Windows command:
Administrator>netsh interface ipv4 add address “Local Area Connection” <IP Address> <Subnet Mask> <Default Gateway>
and it returns an error not recognized as an internal or external command operable or batch file what is wrong with this command?
It could be one of these problems:
a path issue that can be solved by editing the path environment variable, or
the program is not installed in your computer.
Check if the file netsh.exe exists in the c:/windows/system32 folder. If it is there, then open the terminal and execute the command:
PATH
You will see the whole path. Make sure that the system32 folder is in it. If it is not present then you can add it using the following command:
PATH %PATH%;C:\windows\system32
If you don't have the file netsh.exe, the Network Shell might not be installed. You can download and install it from here.

Resources