sencha: command not found - extjs

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

Related

How to install allure in MAC manually

I am trying to install allure in MAC not able to it.
I am getting the error "-bash: allure: command not found".
I have downloaded allure-commandline-2.9.0.tgz and allure-commandline-2.9.0.zip from the below link: https://repo.maven.apache.org/maven2/io/qameta/allure/allure-commandline/2.9.0/
I tried with both but it is not working.
Steps I have followed:
download the .tgz or .zip file.
unzip/untar the file.
set /allure-2.9.0/bin dir to the PATH variable.
Restart the terminal.
trying to run allure --version command.
But I am getting the error "-bash: allure: command not found".
Your installation folder of the tool is not /allure-2.9.0/bin
A good practise is to create a "bin" folder inside your user-account: "~/bin" and include this to the $PATH environment. From now on you can link or copy your extracted tool from e.g. ~/Downloads/allure-2.9.0/bin to ~/bin
You don't have to extend the PATH variable for each new tool.

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

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.

using adb in command prompt, but receiving error

C:\Users\purpl\AppData\Local\Android\Sdk\platform-tools>ADB SHELL RM /DATA/SYSTEM/PASSWORD.KEY
adb: usage: unknown command SHELL
This line should run android sdk, but it doesn't and comes up with this
Unlike Windows file system adb commands are case-sensitive even on Windows.

'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

Unable to build Angular project using Jenkins

I need to run the following commands:
bower update
grunt build
I am getting the following error:
C:\Program Files (x86)\Jenkins\jobs\Build\workspace>export PHANTOMJS_BIN=/usr/lib/node_modules/phantomjs
'export' is not recognized as an internal or external command,
operable program or batch file.
C:\Program Files (x86)\Jenkins\jobs\Build\workspace>export XDG_CONFIG_HOME="$WORKSPACE/.config"
'export' is not recognized as an internal or external command,
operable program or batch file.
C:\Program Files (x86)\Jenkins\jobs\Build\workspace>bower update
'bower' is not recognized as an internal or external command,
operable program or batch file.
C:\Program Files (x86)\Jenkins\jobs\Build\workspace>grunt build
'grunt' is not recognized as an internal or external command,
operable program or batch file.
Please suggest
export command is not for Windows; it's for *nix machines. If you want to set some path on Windows OS, use set command. Remember that this value will be set only for the current shell. Once you close the command prompt, the value will also get unset.
For example,
set PHANTOMJS_BIN=/usr/lib/node_modules/phantomjs
set XDG_CONFIG_HOME="$WORKSPACE/.config"
For the third and fourth error, you have to make sure that bower (and grunt) command is in the PATH otherwise the system will never be able to locate the command as is happening right now. To make it work, just add the path to bower executable in PATH variable.
set PATH=%PATH%;path_to_bower_executable
For example, if bower command is in c:\bower\bin, just add
set PATH=%PATH%;C:\bower\bin
To set your changes permanently, you can go through the steps mentioned in this link.
Problem solved. This is what I am doing now.
set PATH=PATH=C:\Windows\system32;C:\Windows;
C:\Windows\System32\Wbem;
C:\Windows\System32\WindowsPowerShell\v1.0\;
C:\Program Files (x86)\Java\jre7\bin;
C:\Program Files\nodejs\;
C:\Ruby200\bin;
C:\Program Files (x86)\Git\bin;
C:\Ruby200-x64\bin;
C:\Users\appcito\AppData\Roaming\npm
cd testnew
cd ui
call npm cache clear
call npm install
call bower cache clear
call bower install
call grunt build

Resources