Skip to content

Windows

The reality for many SAS developers is that they are working in locked down windows machines without admin rights. This causes problems when trying to install basic tooling such as GIT or NPM.

The correct approach in such circumstances is to simply make a request for these apps to be installed, so that you can be enabled to create amazing, supportable, maintainable web applications for your end users.

The alternative is to use portable versions that do not require admin privileges to execute.

Note

If you are using powershell, and you don't have access to change your environment variables, you can add your paths to $PROFILE script $env:Path. Thanks Christopher Mortimer for the tip!

VSCode

VSCode is a powerful editor that includes a commandline that will run both CMD and POWERSHELL. You can download the full version here or use the portable version here.

NPM

Node Package Manager is an essential piece of kit, as it allows the dependencies of your project to be installed in a reproduceable manner. You can download the full version here, or - to install npm without admin rights:

  1. visit the official download page and extract the Windows Binary (zip file - not the installer).
  2. Copy the contents to a filesystem location, eg C:\Tools.
  3. Append the path (eg C:\Tools;) to the PATH variable in Environment Variables. You can access the Environment Variables dialog, by right clicking on the Computer > Properties > Advanced system settings > Advanced tab > Environment Variables. If you don’t have permission to access Environment Variables dialog, you can try the following command in the Run dialog: rundll32 sysdm.cpl,EditEnvironmentVariables.

GIT

The full version of git can be downloaded here or use the portable version here with the following instructions:

Download the portable .exe file from the releases page and unzip it to a location in your filesystem.

Inside the unzipped folder will be a folder called cmd. This contains the git.exe file. There is also a usr/bin folder - which contains ssh-keygen.exe.

Add both of these locations to the PATH environment variable for your windows account, as per below.

adding path in windows

Be sure to hit OK twice for the change to be saved! You can now open a new shell window and create your SSH key using the ssh-keygen command.

rsync

It's very handy to be able to rsync your local web content to the SAS web server. The git bash shell does not come with rsync by default. A guide to installing it (using git bash) is available here

CMDer

This comes prebundled with GIT, allows a number of unix commands, and enables a remote (cloud) config, worth checking out: https://cmder.net/