nvm use does not switch version of nodejs - nvm

I have two versions of Node js but I try to switch to 14.20.1 then I get the message below how should I solve this problem? I have tried to delete the folder Nodejs in C:\Program Files it still does not work
C:\Users\BETA TECH>nvm list
* 16.17.0 (Currently using 64-bit executable)
14.20.1
C:\Users\BETA TECH>nvm use 14.20.1
exit status 1: 'C:\Users\BETA' is not recognized as an internal or external command,
operable program or batch file.
exit status 1: 'C:\Users\BETA' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\BETA TECH>

Use PowerShell and run it as administrator and try again

Related

SendGrid: 'source' is not recognized as an internal or external command, operable program or batch file

I am trying to set up the web api for SendGrid.
I can't create the environment variable. In CMD or Anaconda Prompt, when I enter source ./sendgrid.env
I get:
'source' is not recognized as an internal or external command,
operable program or batch file.
++++++++
Instructions from SendGrid +++++++++++++++++++
Create an environment variable
Update your development environment with your SENDGRID_API_KEY. Run the following in your shell:
echo "export SENDGRID_API_KEY='XXXXX'" > sendgrid.env
echo "sendgrid.env" >> .gitignore
source ./sendgrid.env
source is a *nix command and it appears you are using Windows.
Windows also doesn't support export to set environment variables. To set an environment variable you can either use the UI, as described in this blog post. Or you can use the set function, e.g.
set SENDGRID_API_KEY SG.xxx
Then you should be able to run your application.

Youtube dl Unable to extract video data 't' is not recognized as an internal or external command, operable program or batch file

Hello so I would like to begin with that I am not extremely tech savvy. I am trying to download a video so that I can reformat it. I keep on receiving and error that says "unable to extract video data 't' is not recognized as an internal or external command. I tried to update youtube-dl, but it said it couldn't find an new version. I'm not sure if the issue I am having is that I can't update youtube-dl or if there is an issue with me downloading the video itself.
Here is the script line that I used to download the video.
C:\Users\name> YouTube-dl.exe -f bestvideo+bestaudio https://www.youtube.com/watch?v=llRfY17n-Lo&t=321s
[youtube] llRfY17n-Lo: Downloading webpage
ERROR: llRfY17n-Lo: YouTube said: Unable to extract video data
't' is not recognized as an internal or external command,
operable program or batch file.
Here is the scripts I used to try and update Youtube dl.
C:\Users\name>youtube-dl.exe -U
ERROR: can't find the current version. Please try again later.
C:\Users\name>youtube-dl -U
ERROR: can't find the current version. Please try again later.
I had similar problems with the following errors:
'v' is not recognized as an internal or external command,
operable program or batch file.
and
'feature' is not recognized as an internal or external command,
operable program or batch file.
I fixed the error and was able to download the file by entering the following command in command line and pressing enter:
youtube-dl **video identifier**
where video identifier is the series of digits that comes after "v=".
For example, if your video URL is https://www.youtube.com/watch?v=dMH0bHeiRNg --> the identifier is dMH0bHeiRNg and the whole command is:
youtube-dl dMH0bHeiRNg
Actually I have found another solution to this:
in Windows, open the folder that you want to download the video in, say it is C:\Users\username
Then press CTRL+L and write cmd and press enter. Now the command line opens at the desired folder. (Make sure the folder is not under Windows or system32.)
Write youtube-dl youtube.com/your_url and press enter and it should download the video just fine.

'C:\Users\User' is not recognized as an internal or external command, operable program or batch file

When I using VS code remote SSH connection, it always fails to connect and warning me "'C:\Users\User' is not recognized as an internal or external command, operable program or batch file."
I guess the issue is the path "C:\Users\User" contains space, and the full path should be something like "C:\Users\User Name...", but I don't know how to suppress and add the escape character to space.
Can anyone help me to resolve the problem? Many thanks!
Other information:
Operating system: Windows 10.
I have installed OpenSSH and I can connect to the remote server using windows PowerShell or git bash.
The version for VS code is 1.43.0 and extension is 0.50.0.

I am trying to open Jmeter by the batch file but it gives me a Windows error

Here is the related error its showing:
java.exe is not a recognized file as an internal or external command,
operable or external command
errorlevel=9009
i was getting the same error on WIndows 8.1(64 bit) and checked java path but it was ok
so i just run my jmeter.bat with Run as Administrator and it worked for me
Many operating systems have an environment variable such as PATH that contains a list of directories (or folders) to be searched when looking for a command to execute. Commands that can be found via the PATH are commonly called external commands. The program that reads the command line or the batch file and invoked the commands may have a number of built in commands, these are commonly called internal commands.
I suggest you examine the PATH (or equivalent) set when your java command executes from the command line and also when execution is attempted from the batch file. Compare the two and make sure the directory containing your java.exe is in the PATH.
Does not work with Java 9 beta:
Running:
C:\java -version
Gives:
java version "9-ea"
Just go into command line and run:
java -jar ApacheJMeter.jar
Set the correct Java Path (installed in your system) in Computer -> Advanced System settings -> Environment Variables -> Ok -> System Variables -> Path
I got the same issue and resolved by following the above steps.
I tried everything, this eventually worked.
Within System Variables:
PATH = "C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Java\jdk1.8.0_101\bin"
May help someone.
This error occurs due to the path has not been set properly.
Either you can set it in environmental varialables or right click jmeter .bat file,choose edit set the path their,for reference see the jmeter.apache.org user manuals.
For me, my Java path has a space in it and jmeter said it can't find Java
/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home
.. I looked at the jmeter.sh script and saw it got the path from "Plugin-Ins" .. onward. I tried just commenting out the exit command after that check in the script .. and then I was able to run jmeter.
So apparently the validation logic has a bug, where the error message about can't find java is in fact not true (if Java is indeed set up correctly), so it can be ignored.
For windows 8.1 Users:
Error when trying to run jmeter.bat
Error message:
Not able to find Java executable or version. Please check your Java installation. errorlevel=2
Press any Key to continue
Resolution:
Right Click jmeter.bat and Run as Administrator.
This worked for me, hope this helps. Good luck
Set the correct JM_LAUNCH variable to java.exe
For Windows XP users set Java environment by following the steps here:
http://www.tutorialspoint.com/jmeter/jmeter_environment.htm
Note the path depends on your installed JDK.
And download the file from:
https://svn.apache.org/repos/asf/jmeter/trunk/bin/jmeter.bat
Then replace your jmeter.bat with the downloaded file.
If you have installed Java and still you get this error, please set the java_home path to below using typing below command in terminal:
export JAVA_HOME="/Library/InternetPlugIns/JavaAppletPlugin.plugin/Contents/Home"
Since I run many versions of Java.. I modified jmeter.bat.
rem JM_START - set this to "start" to launch JMeter in a separate window
rem this is used by the jmeterw.cmd script.
rem
rem =====================================================
setlocal
rem Minimal version to run JMeter
set MINIMAL_VERSION=1.8.0
set PATH=%PATH%;C:\Program Files (x86)\IBM\Java80\jre\bin <<< add This line to jmeter.bat
Copied the JAVA executable from Installed version of Java from C:\Program FilesJava\jdk1.8.0_191\bin and pasted in the folder where the jmeter bat resides and it worked for me.
Not exactly the same issue but somebody might find it helpful
Do not double click jmeter.bat but instead ApacheJMeter.jar in the same directory
For me jmeter.bat run but for a brief moment closing almost immediately and not prompting any error. Above workaround allowed me to start working
if JAVA -version shows as blank or empty in the command prompt (CMD) then you need to clear the all java paths in environment variable and again add JAVA_HOME=C:\Program Files\Java\jdk-11.0.15.1
path= C:\Program Files\Java\jdk-11.0.15.1\bin;
if you see C:\Program Files\Common Files\Oracle\Java\javapath; like this remove this
and try in new CMD prompt then Java -version will work.

Pig Setup on windows in local mode

I have downloaded pig-0.11.1 from apache website
Installed cygwin with perl package
Installed Latest Java
Added pig.../bin to PATH
D:>PATH
PATH=D:\Windows\system32;D:\Windows;D:\Windows\System32\Wbem;D:\Windows\System32 \WindowsPowerShell\v1.0\;D:\pig-0.11.1\bin
Now, if I run pig -help,
'pig' is not recognized as an internal or external command,
operable program or batch file.
Have I missed any step?
Try opening 'sh' and enter the pig commands. (i.e.) type 'sh' in the command prompt , it will open a shell like below image and enter your pig commands.