[bug] [windows] [npx] Windows Setup not generating greenlock.json #17
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Installing v3 on a win10 machine works up util the
npx greenlock defaults --subscriber-email 'jon@example.com' --agree-to-terms'
step.
When I run it, Notepad++ opens to greenlock.js, and never creates a greenlock.json file.
Running
npx greenlock add --subject example.com --altnames example.com
also does nothing and there is still no greenlock.json until I start with
npm start -- --staging
at which point I get the
warning: No sites available. Did you add them?
npx greenlock add --subject example.com --altnames example.com'
message.
I'm not sure on the structure of those json objects, so I cannot manually create them. Do you have any ideas I could try to get it running?
Thanks!
I forgot, this is a long-standing issue with
npm
/npx
on Windows: you can't name a file the same name as a command (i.e. if you want to usenpx greenlock
, you can't have a file namedgreenlock.js
)Quick fix
And then edit
server.js
to usegreenlock-x.js
.Long-term fix
I'm actually going to change the CLI to not create
greenlock.js
.Format
Also, the format is in the README, https://git.rootprojects.org/root/greenlock-express.js#quickstart-guide under part 4, under
example output
.Windows Setup not generating greenlock.jsonto [bug] [windows] [npx] Windows Setup not generating greenlock.jsonThank you @solderjs!
That worked perfectly and I was able to run start without issue!
Re-opening until I actually merge the patch.
This is fixed with v4.