'.' is not recognised as internal or external command on windows? - reactjs

i have the line below in the package.json file.
"start:setup": "./start-setup.sh",
and from windows command prompt i run the command npm run start:setup
and i get this error..
'.' is not recognised as an internal or external command....
what i have tried?
i tried the above command on gitbash and didnt work.
i changed this
"start:setup": "./start-setup.sh",
to
"start:setup": "sh start-setup.sh",
and error sh is not an external or internal command is thrown
Could someone help me fix this. thanks.

.sh is a Linux shell file.
Windows doesn't process such files by default.
If you want, you could try installing bash for windows.

Related

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

I received React project from github, and I encountered below error when I typed "npm start".
> #devias/material-kit-pro-react#4.1.0 start
> DISABLE_ESLINT_PLUGIN=true react-scripts start
'DISABLE_ESLINT_PLUGIN' is not recognized as an internal or
external command, operable program or batch file
I guess this is an environment issue.
But I cannot solve it.
Anyone can help me?
Actually, I cannot solve this issue on Windows, but when I run it on MacOS, there is no issue.
If anyone have ideas, let me know.
You can set environment variable:
Windows:
set DISABLE_ESLINT_PLUGIN=true
Docker:
docker run --rm -ti -p 8080:3000 -e DISABLE_ESLINT_PLUGIN=true .....
node node_modules\eslint\bin\eslint.js --help

253006 (n/a): File doesn't exist:

I am trying to PUT a file into Snowflake staging area using PUT
command.
When I run the command using snowsql I am able to PUT the file in
stage area.
When I try to execute the same command from a shell script it is
throwing below error.
253006 (n/a): File doesn't exist: ['/home/raghu/sample_pipeline_config.csv']
Any help will be highly appreciated. FYI I am running the commands in
Ubuntu terminal.

'tar' is not recognized as an internal or external command

I am trying to extract a zip file in Windows 10 using a batch script.
It a simple command:
tar zxf "logstash-5.4.0.tar.gz"
ECHO "installed"
But I am getting following error:
'tar' is not recognized as an internal or external command
I have seen that I have to install the tar but how can I do that?
How can I do this?
EDIT Tar is pre installed in windows or we have to externally add it? Still how can i extract without using third party tool.
You can download Tartool Application in your desktop and paste it into
C:\Windows\system32\
For eg:-(C:\Windows\system32\tartool.exe)
By doing this it work as internal command when you want to extract your file you can simply use
C:>TarTool.exe D:\sample.tar.gz ./
For more commands you can read documention part of that Tool
Starting windows 10 build 17063, TAR is an inbuilt tool and no need to install it separately. MSDN link
For example, to uninstall a file named XYZ.zip you can execute the following in Command Prompt.
tar -xvf XYZ.zip

sencha: command not found

I've installed Sencha by using the Terminal but I can't run if from the Terminal
samuel#samuel-pc:~/Downloads$ sudo ./SenchaCmd-6.5.0.180-linux-i386.sh -q
Starting Installer ...
The installation directory has been set to /root/bin/Sencha/Cmd/6.5.0.180.
Extracting files ...
Finishing installation ...
samuel#samuel-pc:~/Downloads$ sencha
sencha: command not found
Because you don't set environment variable.
If running sencha results in the error message sencha: command not
found on OSX/Linux or 'sencha' is not recognized as an internal or
external command, operable program or batch file on Windows, follow
these steps: ...
This is official guide: https://docs.sencha.com/cmd/guides/intro_to_cmd.html#intro_to_cmd_-_command_not_found

jar file problem

when i tried to run jar file from netbeans it works fine but when i try to run by command prompt it gives me exexeption in thread error but when i check my task manager it shows the javaw.exe is running..............what it exactly and why this error comes only in command prompt?
compile your application with:
>javac -jar example.jar ClassName.java
Run:
>java -jar example.jar ClassName
Can you please paste the exception that you get.
When running from command line, you have make sure that classpath for your program is set properly.
Make user that you have set the main-class in your manifest file of you jar.

Resources