Skip to content

"cwd option must be a path to a directory" error from percy snapshot #590

Answered by Robdel12
ekinoben asked this question in Support
Discussion options

You must be logged in to vote

Hey @ekinoben! When you get this message:

Need to install the following packages:
  percy
Ok to proceed? (y) y

npx is going out to the registry to install a package named percy because it didn't find an executable in the node_modules folder with a matching name. The percy package is the old @percy/agent package that we can't deprecate/change yet since lots of people rely on that still.

Where are you running npx percy snapshot urls.yml --dry-run? Is it the same directory @percy/cli was installed in? What happens if you run ./node_modules/.bin/percy snapshot urls.yml --dry-run?

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ekinoben
Comment options

@Robdel12
Comment options

@AlexB-Adv
Comment options

Answer selected by ekinoben
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Support
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #589 on October 20, 2021 15:08.