This repository has been archived by the owner on Aug 5, 2024. It is now read-only.
Windows Powershell - "running scripts is disabled on this system" when running nexmo
#218
Labels
Steps to reproduce
On Windows 10:
nexmo-cli@beta -g
nexmo
Expected behavior
I should see the help output from the
nexmo
command.Actual behavior
This normally occurs when the remote script isn't trusted. I could get it to run by changing my Execution Policy to "RemoteSigned", at which point the CLI worked again:
It looks like at some point after npm 6.9.0, npm started generating a
nexmo.ps1
file to help wrap the node SDK in the event node is installed both under Powershell and Linux. Thisps1
file will not run under the default "Restricted" execution policy Windows 10 ships with.npm 6.9.0 and prior do not generate this file, and worked fine.
Other projects with this same general issue:
System configuration
Node version:
12.16.3
NPM version:
Broken under 6.14.4
Works under 6.9.0
Operating system:
Windows 10 Professional under Powershell
The text was updated successfully, but these errors were encountered: