Installation¶
The SASjs CLI is an npm package, so Node comes first. Both take a few minutes.
1. Node¶
Download the current LTS release from nodejs.org and run the installer. Leave the "tools for native modules" checkbox clear - nothing here needs a compiler.
If you work across several Node versions and have admin rights, nvm-windows is the tidier option.
nvm installs Node without root:
Node 22 or newer is supported.
2. The CLI¶
Then check it:
Upgrades¶
Use the npm that ships with your Node - Node 22 bundles npm 10. If npm has been pinned to an old release, npm i -g npm@latest first: global upgrades on npm 6 are unreliable (npm/cli#1884) and npm 6 has been end-of-life since 2022.
If a command does not behave as this site describes, run sasjs version first: an older CLI is the usual reason.