Unable to get local issuer certificate with Sitecore JSS Create

Sitecore Asked on January 3, 2022

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.


One Answer

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.

Answered by Anastasiya on January 3, 2022

Add your own answers!

Related Questions

How to get General Link Field in RenderFieldArgs?

0  Asked on August 23, 2021 by gautam-aneja


Setting site default language in SXA

1  Asked on August 23, 2021 by mohamed-mosa


Sitecore domain and sub domain authentication

1  Asked on August 23, 2021 by suresh-r


No data recorded in Experience Analytics

3  Asked on August 23, 2021 by breno-diniz-pelosi


GraphQL query to search for pages based on template

2  Asked on August 23, 2021 by serhii-shushliapin


Sitecore SxA Composite Layout not adding custom css and js

1  Asked on August 23, 2021 by nadine-lendzian


Sitecore Item URL with Custom Domain in Azure PaaS

2  Asked on August 23, 2021 by alok-kumar


Updated field in rendering variant not working

2  Asked on August 23, 2021 by barada-behura


Creating multi site using Sitecore JSS

1  Asked on August 23, 2021 by haappyy02


Scale Out Content Management AppService

1  Asked on August 23, 2021 by pirate-briggs


Use SXA rendering variant for dynamic object

1  Asked on August 23, 2021 by user2980


Custom Item Url Builder

1  Asked on August 23, 2021 by ethan-schofer


Ask a Question

Get help from others!

© 2023 All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP