Groovy is not recognised as internal or external command - groovy

I downloaded and installed groovy
But if I type groovy in the cmd i get
'groovy' is not recognized as an internal or external command,
operable program or batch file.

To Solve this Problem Follow following Steps::
Right Click on This PC>>go to Properties>>Go to Advance System Setting(at Left)
In This Window
Go to Environment Variables
Click on New Enter variable name 'groovy'.
For path goto this pc and select the path where groovy is installed for Example::
C:\Program Files (x86)\Groovy\Groovy-3.0.0\bin
paste your path instead of my path in your variable path field.
now press save and ok.
Restart your VS Code editor..
Now, It's Working.....!

There seems to be a problem in the windows installer.
Edit path settings manually; replace %GROOVY_HOME% by the directory name
D:>path
PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Groovy\bin
Now the groovy command does work.

Related

Error on running Scriptcs with Sublime Text 3

I have installed Scriptcs to Sublime Text 3.
I get this error when I press CTRL B and build my aspx page.
'scriptcs' is not recognized as an internal or external command,
operable program or batch file.
I'm trying to run my aspx page on Sublime.
How can I fix this ? Thanks.
You need to add scriptcs to you PATH environmental variable, otherwise the system cannot find the executable.
The process is described in the ScriptCS documentation:
For simplicity, we will be using the Chocolatey Nuget method of
installation. Copy and paste the following command into your console.
This will execute a PowerShell script that will download Chocolatey,
place it on your local drive, and configure your path. Make sure to
reload your session so your new path is loaded.
#powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%systemdrive%\chocolatey\bin
Next execute the
following command in your console. This will download ScriptCS, place
it on your local drive, and configure your path. Make sure to reload
your session again so your new path is loaded.
cinst scriptcs
If you prefer adding scriptcs to your PATH manually (or simply want to get a better general understanding of PATH), have a look at this excellent answer.
Please try installing SublimeREPL and then select scriptcs from the available options. Once selected, try building the using ctrl+alt+B. https://sublimerepl.readthedocs.io/en/latest/

Running npm in cmd giving me errors, I just installed nodejs msi on windows

I installed nodejs in Windows system from official website and npm giving errors:
CALL "C:\Program Files\node js\\node.exe" "C:\Program Files\nodejs\\node_modules\npm\bin\npm-cli.js" prefix -g' is not
recognized as an internal or external command, operable program or batch file.
I have given all sorts of paths. Please help me.
http://prntscr.com/gso39z
Add the following paths to your PATH environment variable
%USERPROFILE%\AppData\Roaming\npm
C:\Program Files\nodejs\
(note that i have windows 10, where your programs are installed can differ as per your windows version)
To permanently set PATH environment variable, follow these steps:
This PC/ My Computer Properties
Advanced System Settings, (right side)
from popup, click environment variable
select PATH environment variable under system variable, (not user variable) then click edit
Click new, and copy and paste one of the path (given) there.
new again and paste second path
to check if its set or not, goto terminal, and type PATH
note: if you type PATH, its value will be displayed, but if you type %PATH% , each of its value will act as a command input to terminal (windows terminal -_-).
Start the process by being an administrator.
Open up your command prompt as an administrator.
And if you are using older version of node say 6.9, please upgrade to 6.10, it may solve your problem.

cannot find zipalign.exe from android sdk

what do I need to download to get the zip-align tool to use on my apk file?
I am using the ionic3 guide for developing for Android. when I type this:
zip-align -v 4 android-release-unsigned. apk HelloWorld.apk
I get:
'zip-align' is not recognized as an internal or external command,
operable program or batch file.
I want to build for google playstore
You will found zipalign.exe in this location
C:\Users{username}\AppData\Local\Android\sdk1\build-tools{android-api-no}\zipalign.exe
then you need to add in your system path
Windows
Windows 10 and Windows 8
In Search, search for and then select: System (Control Panel)
Click the Advanced system settings link.
Click Environment Variables. In the section System Variables, find the PATH environment variable and select it. Click Edit. If the PATH environment variable does not exist, click New.
In the Edit System Variable (or New System Variable) window, specify the value of the PATH environment variable: 'zipalign'. Click OK. Close all remaining windows by clicking OK.
more info how to change path:
https://www.java.com/en/download/help/path.xml
Download the 20.0.0 version file from this link
https://androidsdkmanager.azurewebsites.net/Buildtools
After Extract, you can find Zipalign.exe file in it & Copy that file & paste it in tools & bin folder.
Restart Eclipse & thats how it works for me.

node not recognized even if it's in PATH

I can't seem to get node & npm available globally.
-I installed it with the windows installer
-Made sure the path "C:\Program Files\nodejs\node.exe" is in my user path as well as in system path.
userpath: C:\Ruby22-x64\bin;"C:\Program Files\nodejs";"C:\Users\Robin V\AppData\Roaming\npm"
(tried it with and without quotes)
systempath:
...;C:\Program Files (x86)\Microsoft SQL Server\130\Tools\Binn\ManagementStudio\;C:\Program Files\nodejs\;C:\Users\Robin V\AppData\Roaming\npm\
- Rebooted multiple times
- Ran cmd as administrator
"node" still returns the not recognized error
UPDATE:
i checked tHKEY_CURRENT_USER\Environment and made sure the "PATH" key type is REG_EXPAND_SZ
i negated all paths with a space with " quotes
i there are no space between teh semicolons and the paths
i execture cmd as administrator
Anything else i can try ?
Can you please try one more thing, move node path to the first entry in the list of PATH strings.
Thanks SnK
set the C:\Program Files\nodejs\bin directory in window's PATH environment variable
Try this one dude if you're using windows:
1.) Search environment variables at your start menu's search box.
2.) Click it then go to Environment Variables...
3.) Click PATH, click Edit
4.) Click New and try to copy and paste this: C:\Program Files\nodejs\node_modules\npm\bin
If you got an error. Do the number 4.) Click New, then browse the bin folder
Add it to the PATH environment variable (under System Properties -> Environment Variables). After this run cmd and echo %PATH% to make sure that the nodejs and npm paths appears correctly.
This is what I have in my echo %PATH% (which works fine) : .... ;C:\dev\tools\nodejs\;C:\Users\username\AppData\Roaming\npm; ...
Are you sure you've got the right path? Could it be in C:\Program Files (x86)\nodejs?

Opening Microsoft Visual Studio Code from command prompt Windows

Is there a way to launch Microsoft Visual Studio Code from the command line in windows? I can't even seem to find the directory for code on my computer. It didn't even ask me where to download it.
Navigate to the directory that you want to open and type code . to launch VS Code.
As many folks already suggested ways to open code from command prompt using code . command. This will only open Visual Studio Code Stable build. But If you have downloaded Visual Studio Code Insider build/version (Which has all latest build/features but unstable version) then you need to follow below instructions in windows :
Go to Control Panel\System and Security\System. Click on Advanced System Settings
Click on Environment Variables
Under System Variables tab, Click on Edit for Path Variable
Add a new path C:\Users\tsabu\AppData\Local\Programs\Microsoft VS Code Insiders\bin
(or)
C:\Program Files\Microsoft VS Code Insiders\bin based on location at which you have installed vscode insider in your machine.
Open a new command prompt and type code-insiders . to open vscode-insider
build/version
Short answer:
code your_path your_filename
Long answer:
Here your_path can simply be . if you want to use the current directory as your working path. Or .. for 1 level up, etc.
code is the name of the executable of Visual Studio Code (code.exe). If it doesn't launch, perhaps your VSC path hasn't been added to the path environment variable. Run this command to add it:
set PATH=";C:\Program Files\Microsoft VS Code\bin"
Of course you'll need to specify a different path if your VSC is installed somewhere else.
How can you find out the installation path? (click for screenshot) Go to "Start" menu, type in "Visual Studio Code", right click on the found program, "Properties", check "Target". Now you'll see!
It may come already added to your path when installed. Try using code <filename> in your command line. If it's not you can add the command line script's directory to your path. The command line script's directory is downloaded by default in the following location
C:\Users\<username>\AppData\Local\Code\bin
Point your command prompt to the specific folder that has the file that you want to open. Let's say you want to open the file titled main.scss. Simply run this command:
start code main.scss
If Visual Studio Code is already open, you can simply do:
code main.scss

Resources