I’m getting this error below everytime I try to run ‘npx percy exec — node snapshots.js’.
PowerShell Terminal
Problem Image -> https://i.stack.imgur.com/XCSj6.png
I have followed this Tutorial -> https://docs.percy.io/docs/percyscript-tutorial
Anyone know how to solve this? I looked everywhere and found nothing.
Thank you in advance!
Advertisement
Answer
PowerShell has a different syntax for working with Environment Variables.
Try this:
$env:PERCY_TOKEN = "token"