Skip to content

Running npx antora -v on Windows not working #35

@enoearias

Description

@enoearias

I was following the instructions to build Antora Localy and I was getting issues running the following command:

npx antora -v

My windows said that the script's execution was disabled so I did some research and I found the following commands:

get-executionPolicy -list

This command returned the following:

    Scope ExecutionPolicy
    ----- ---------------

MachinePolicy Undefined
UserPolicy Undefined
Process Undefined
CurrentUser Undefined
LocalMachine Undefined

Then I wrote the following command:
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
Type Y or S, depending on the language

And finally I was able to run the following command

npx antora -v

Documenting this in the case of anyone running into the same issue

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions