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.
Thanks,
Alok…
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:
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…
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
1 Asked on October 20, 2020 by sumitk
0 Asked on October 18, 2020 by katlego-masanabo
2 Asked on September 25, 2020
0 Asked on September 9, 2020 by eric-gonzalez
Get help from others!
Recent Questions
Recent Answers
© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP