The term 'percy' is not recognized as the name of a cmdlet
konstantinschuette opened this issue · 0 comments
konstantinschuette commented
The problem
After running npm install --save-dev @percy/cli @percy/cypress
on my CI windows machine the command percy
is still not available in the powershell.
Executing percy
in the powershell throws the following error:
percy : The term 'percy' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct and try again.
At line:1 char:1
+ percy
+ ~~~
+ CategoryInfo : ObjectNotFound: (npm:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Environment
- Node version: 16.14.2
- NPM version: 8.5.0
@percy/cli
version:- OS version: Windows Server 2009 Standard
- Type of shell command-line [interface]: Windows powershell
Details
As a temporary fix I've added npx
before running the tests. Then the execution of percy commands is possible. But I guess that shouldn't be the way to go.
Code to reproduce issue
npm install --save-dev @percy/cli @percy/cypress
percy