最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - (PERCY) Warning: skipping visual tests. PERCY_TOKEN was not provided - Stack Overflow

programmeradmin2浏览0评论

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
发布评论

评论列表(0)

  1. 暂无评论