sasjs / cli

Command line interface for creating, compiling, and building SAS® projects

Home Page:https://cli.sasjs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

After: npm i @sasjs/cli and npm i @sasjs/cli@latest I'm receiving ERROR when calling sasjs on cmd

opened this issue · comments

Hi @bendanielsbacka - we are unable to replicate this, on Linux / Mac / Windows, powershell or bash. The npx sasjs create project_name command works perfectly (on our machines).

Can you give us more details of your setup in order to reproduce, eg:

  • Node version
  • NPM version
  • terminal type (bash, cmd, posh)
  • OS
  • anything else...

also, fyi, if you are using npx then there is no need to install SASjs locally.

EDIT:

The issue presented is not related to SASjs, but rather, an NPM issue. Can you please try uninstalling and reinstalling npm?

You may wish to try NVM for windows: https://github.com/coreybutler/nvm-windows

Thanks Ben, you're very welcome, and glad to hear you are all making good use of SASjs!

I would suggest completely removing NodeJS / NPM and installing again from scratch.

If you would like help setting up sasjs doc, sasjs test, sasjs flow or even sasjs cbd feel free to join our public matrix room: https://matrix.to/#/#sasjs:4gl.io

As you have confirmed the command is working in other Windows machines (with the same setup), and on RHEL7 SAS Viya, I will close the ticket.

Best,
Allan

About the extension - it's not an either/or. Since SAS produced an official extension, we've switched focus to the areas they don't (and perhaps won't) support - such as Base SAS support (with SASjs Server), doc generation, linting, auto-compile & deploy of Jobs/Services/Tests, and support for non-proprietary instances of VS Code such as Codium and Theia.

You can use both, side by side.

Thanks for the support! I don't have your contact details - feel free to mail privately on allan@4gl.io and I'd be happy to help out with any SASjs questions or queries.