admin 管理员组

文章数量: 1086019

I'm getting this error below everytime I try to run 'npx percy exec -- node snapshots.js'.

PowerShell Terminal

Problem Image -> .png

I have followed this Tutorial ->

Anyone know how to solve this? I looked everywhere and found nothing.

Thank you in advance!

I'm getting this error below everytime I try to run 'npx percy exec -- node snapshots.js'.

PowerShell Terminal

Problem Image -> https://i.sstatic/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!

Share Improve this question asked Nov 26, 2019 at 13:11 MatheusCMatheusC 331 silver badge4 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 7

PowerShell has a different syntax for working with Environment Variables.

Try this:

$env:PERCY_TOKEN = "token"

Powershell Help - About Environment Variables

To set up PERCY_TOKEN on windows we have to use powershell.

1.Open powershell on windows

2. Go to project library through mands cd, cd..

3.Set the PERCY_TOKEN $env:PERCY_TOKEN='your token'

4. Then run your project using powershell through your mand npm run test:percy

本文标签: javascript(PERCY) Warning skipping visual tests PERCYTOKEN was not providedStack Overflow