This repository has been archived by the owner on Jun 28, 2024. It is now read-only.
[BUG] [Windows] PowerShell Execution Policy prevents running the script #123
Labels
bug
Something isn't working
After installing the CLI with npm on Windows, running
superface
ends up with the following error:Expected Behavior
The CLI should run.
Current Behavior
See above.
Possible Solution
This seems rather to be an issue with NPM since it is responsible for setting up the CLI shims, see e.g. Nexmo/nexmo-cli#218
Two possible solutions include:
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser
(other options like RemoteSigned should work as well).ps1
shim.I will dig into this a bit, it's possible this is a particular issue with npm 6 and it's fixed in npm 7, but at the very least we should document this in our docs.
Steps to Reproduce
npm i -g @superfaceai/cli
superface
Your Environment
The text was updated successfully, but these errors were encountered: