Skip to content

NextJS init.ps1: The term '.\mkcert.exe' is not recognized as the name of a cmdlet #139

@sshushliapin

Description

@sshushliapin

Hi guys,

I'm trying to run the init.ps1 script for the NextJS examples and receiving the following error:

C:\Users\...\Helix.Examples\examples\helix-basic-nextjs\init.ps1 : The term '.\mkcert.exe' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was include d, verify that the path is correct and try again.
At line:1 char:1
+ .\init.ps1
+ ~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (.\mkcert.exe:String) [init.ps1], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException,init.ps1

The issue is caused by this line because $mkcert is not known here:

Write-Host "setx NODE_EXTRA_CA_CERTS $(& $mkcert -CAROOT)\rootCA.pem"

It should probably be replaced with smth like this:

Write-Host "setx NODE_EXTRA_CA_CERTS $(& .\docker\traefik\certs\mkcert.exe -CAROOT)\rootCA.pem"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions