5

I'm running Windows 10, node v14.5.0 and JSS v13.2.0 which is the latest at this time (I've literally just installed it). I'm trying to create an angular app with the JSS-CLI with the following:

jss create my-first-jss-app angular

When I run that in a newly created directory from a command prompt I get the following messaging and error:

JSS CLI is running in global mode because it was not installed in the local node_modules folder.
Error: self signed certificate in certificate chain

I'm not sure if the error is related to the messaging about running in global mode so not sure if I have two issues or if the issues are even related.

Has anyone had this problem or know how to fix it?

1
  • Did you find a solution for this? Commented Sep 24, 2020 at 4:43

4 Answers 4

2

There are a few things I found to fix the self signed certificate in certificate chain error.

set NODE_TLS_REJECT_UNAUTHORIZED=0
npm config set strict-ssl false

Also if you are behind a web proxy you can use the --proxy attribute so the jss cli can download the template from the sitecore git repo.

jss create my-first-jss-app angular --proxy <proxy url here>
5
  • I tried "npm config set strict-ssl false" but it didn't make any difference, I still get the same messaging and error. Commented Jul 9, 2020 at 18:12
  • And NODE_TLS_REJECT_UNAUTHORIZED is set to 0? You can check this in a command prompt by running echo %NODE_TLS_REJECT_UNAUTHORIZED% and it should come back with 0.
    – Tony
    Commented Jul 9, 2020 at 21:43
  • Yep, it comes back 0. Can you tell me if the messaging about running in global mode is an issue at all? I'm not sure if I have one or two issues, nor if they're separate or related to each other. Commented Jul 9, 2020 at 22:45
  • I don't think running in global mode is an issue, in fact it is suppose to run that way when creating a new project. That error seems to come up when other errors occur, in this case not being able to call github for the angular template.
    – Tony
    Commented Jul 13, 2020 at 14:17
  • Thanks. I'll have to look into the proxy side of things. Glad to hear the global messaging is probably not an issue as that did nothing but confuse me further (which doesn't take much these days). Commented Jul 13, 2020 at 15:00
1

Make Sure that you are in the correct directory, initially i faced the same issue then i realized that directory path is not proper enter image description here

with above command there was no output later i modified the path to my jss project folder then it worked enter image description here

enter image description here

Hope this helps!!

0

try "npm install" in your new created App "my-first-jss-app". Steps --> Inside my-first-jss-app

  1. npm install
  2. jss start
0

enter image description here

enter image description here

This issue is occur when you are in wrong directory , Make Sure that you are in the correct directory, initially i faced the same issue then i realized that directory path is not proper

with above command there was no output later i modified the path to my actual directory folder then it worked

Your Answer

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

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