Skip to content

Conversation

@Wu-Lipeng
Copy link

At the 4th step of the document, the out-file command in windows is Power Shell specific. But Power Shell has a default execution policy to restrict the running of JavaScript, which would cause an error when running Eleventy in the next step. If a solution can be provided here(use a command to set the execution policy), the whole experience of trying running Eleventy would be smoother and more beginner-friendly.

At the 4th step of the document, the  out-file command in windows is Power Shell specific. But Power Shell has a default execution policy to restrict the running of JavaScript, which would cause an error when running Eleventy in the next step.
If a solution can be provided here(use a command to set the execution policy), the whole experience of trying running Eleventy would be smoother and more beginner-friendly.
@zachleat
Copy link
Member

zachleat commented Jan 7, 2025

Hm? This has not been my experience—can you be more specific? Does the cross-platform npx @11ty/create method require this or just the out-file command?

@Wu-Lipeng
Copy link
Author

Just the out-file command, I think . When running the out-file command, you are using Power Shell. And you have to change the default execution policy to ensure that the following steps can work. (That's what I've added in the commit)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants