Skip to content

-> Wollok CLI without Admin Rights

Wollok Command Line Interface: without admin permissions

Section titled “Wollok Command Line Interface: without admin permissions”

If you’re on a machine without administrator permissions, for example on a university lab machine or a work computer, we recommend following these steps.

Open a Powershell Terminal window and run:

Ventana de terminal
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned

Confirm it’s correctly configured:

Ventana de terminal
Get-ExecutionPolicy
RemoteSigned # expected response

First confirm that we don’t have Node installed:

Ventana de terminal
node -v
node: The term 'node' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Go to Node’s download page, it will have the LTS version of Node pre-selected.

Download Node zip

Choose the option that says Or get a prebuild Node.js for... for Windows, and finally click on Standalone Binary (.zip).

Unzip and move to a common folder $HOME\node. $HOME is your user’s root folder, which can be C:\Users\Username for example. Note that the node folder must contain the executables, like node.exe. If you see that inside the node folder there’s another folder node-v22.19.0-win-x64 or similar, this means you need to move the files from that subfolder to the parent node folder. The file structure should look like this:

Ventana de terminal
C:\
+ Users
+ Username # your username
+ node
+ node.exe
+ npm.cmd

To do this, you need to add the node folder to the user’s PATH. Run from a Powershell terminal:

Ventana de terminal
# Step 1, test if there's a profile
Test-Path $PROFILE
# if it responds True, go to step 2
# if it responds False, run the following commands
New-Item -Path (Split-Path $PROFILE -Parent) -ItemType Directory -Force
New-Item -Path $PROFILE -Type File -Force
# Step 2, edit the profile
notepad $PROFILE

When opening the file, write the following lines:

Ventana de terminal
$nodePath = "$env:USERPROFILE\node"
if ($env:PATH -notlike "*$nodePath*") {
$env:PATH += ";$nodePath"
}
Set-Alias npm npm.cmd

Save the file and close Notepad.

Then verify how the PATH variable looks. Close and open a new Powershell terminal:

Ventana de terminal
$env:PATH

The PATH should now contain the folder C:\Users\Username\node, where Username is your username.

Run:

Ventana de terminal
node -v

It should show the Node version we installed, like v22.19.0.

From the terminal run:

Ventana de terminal
Unblock-File -Path $HOME\node\npm.ps1

Verify that the Node package downloader works:

Ventana de terminal
npm -v

The version should appear.

Now install wollok by running:

Ventana de terminal
npm i -g wollok-ts-cli

Verify that we have Wollok CLI installed. In the terminal type:

Ventana de terminal
wollok --version

Verify wollok ts cli

Go to the official Node download page.

Download Node

Choose the default option (LTS), where nvm and npm are installed, and run in a terminal (Ctrl + Alt + T):

Ventana de terminal
# Download nvm (node version manager)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
# Restart the shell
\. "$HOME/.nvm/nvm.sh"
# Download npm
nvm install 22
# Verifications: node
node -v # should show the installed node version
# Verifications: npm
npm -v # should show the installed npm version

Now install wollok by running:

Ventana de terminal
npm i -g wollok-ts-cli

Verify that we have Wollok CLI installed. In the terminal type:

Ventana de terminal
wollok --version

Verify Linux wollok ts cli