1

I am trying to create JSS app locally however getting below error while running the Sitecore JSS creates command.

Error:Unable to get local issuer certificate

Command: jss create appname react

I am using the following versions on my local.

Sitecore Version: 9.2
JSS Version: 12.0
Node Version: 12.18.3
NPM Version:  6.14.6

Please help me how I can resolve this issue.

Thanks, Alok...

2

1 Answer 1

2

The jss create command simply clones one of these starter projects from the public jss repo. So errors when running this command are usually caused by GitHub being blocked due to a security policy.

If adding the Sitecore JSS repo to list of permitted access points is not an option with your company, you have the following options:

  1. When you run jss create [project-name] react - in this example react is not a magic string; it is simply the name of a starter project. You can do this for a starter project on your local machine, too. Copy the entire folder of the starter you want to use (one of these) to your machine, and run jss create [project-name] [starter-name] --source ./path/to/starter. This option is quick and will solve the issue on your local machine, but…

  2. if you need a company-wide fix, then the following approach is better. Clone the starter to your company’s GitHub org (or wherever your company stores it’s repos, which aren’t blocked by the security policy). Then use jss create <appname> <starter-name> --repository githubusername/reponame --branch branchname.

1
  • It works for me. thanks @Anastasiya.
    – Jitendra
    Mar 18, 2021 at 12:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.