# Executable file not found in $PATH

**URL:** <https://community.doppler.com/t/executable-file-not-found-in-path/150>\
**Category:** Need Help\
**Created:** [March 19, 2021, 5:41am UTC](https://community.doppler.com/t/executable-file-not-found-in-path/150 "2021-03-19T05:41:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![max](https://sea2.discourse-cdn.com/flex016/user_avatar/community.doppler.com/max/32/276_2.png) [@max](https://community.doppler.com/u/max)\
**Post date:** [March 19, 2021, 5:41am UTC](https://community.doppler.com/t/executable-file-not-found-in-path/150/1 "2021-03-19T05:41:45Z")

</div>

I’m trying to set up Doppler in our CI environment. We’re using CircleCI with the [Cypress orb](https://circleci.com/developer/orbs/orb/cypress-io/cypress).

I can get the Doppler CLI installed and running in our CircleCI config up until the final step: `./doppler run -- cypress run`. At this point the command fails, throwing the following error:

```auto
exec: "cypress": executable file not found in $PATH

```

Notably:

1. I’m able to use the Doppler CLI successfully on other steps (running npm scripts)
2. The final `cypress run` step works properly when I _don’t_ prefix it with `./doppler run --`

---

<div class="post-metadata">

**Author:** ![ryan-blunden](https://sea2.discourse-cdn.com/flex016/user_avatar/community.doppler.com/ryan-blunden/32/9_2.png) [@ryan-blunden](https://community.doppler.com/u/ryan-blunden)\
**Post date:** [March 19, 2021, 5:47am UTC](https://community.doppler.com/t/executable-file-not-found-in-path/150/2 "2021-03-19T05:47:25Z")

</div>

Hey Max and welcome to the Doppler community!

While I would’ve expected your command to work, try using the `--command` form instead:

```auto
./doppler run --command="cypress run"

```

Let me know how you go.

---

<div class="post-metadata">

**Author:** ![max](https://sea2.discourse-cdn.com/flex016/user_avatar/community.doppler.com/max/32/276_2.png) [@max](https://community.doppler.com/u/max)\
**Post date:** [March 19, 2021, 6:03am UTC](https://community.doppler.com/t/executable-file-not-found-in-path/150/3 "2021-03-19T06:03:48Z")

</div>

Slightly different error when I try that but I think it’s the same issue:

```auto
sh: 1: cypress: not found
Doppler Error: exit status 127

```

---

<div class="post-metadata">

**Author:** ![ryan-blunden](https://sea2.discourse-cdn.com/flex016/user_avatar/community.doppler.com/ryan-blunden/32/9_2.png) [@ryan-blunden](https://community.doppler.com/u/ryan-blunden)\
**Post date:** [March 20, 2021, 3:37am UTC](https://community.doppler.com/t/executable-file-not-found-in-path/150/4 "2021-03-20T03:37:00Z")

</div>

Interesting…

To continue troubleshooting, could you inspect the `$PATH` variable with and without Doppler to see if there is a difference?

---

<div class="post-metadata">

**Author:** ![max](https://sea2.discourse-cdn.com/flex016/user_avatar/community.doppler.com/max/32/276_2.png) [@max](https://community.doppler.com/u/max)\
**Post date:** [March 23, 2021, 2:21pm UTC](https://community.doppler.com/t/executable-file-not-found-in-path/150/5 "2021-03-23T14:21:41Z")

</div>

The `$PATH`s are identical with and without Doppler.

---

<div class="post-metadata">

**Author:** ![ryan-blunden](https://sea2.discourse-cdn.com/flex016/user_avatar/community.doppler.com/ryan-blunden/32/9_2.png) [@ryan-blunden](https://community.doppler.com/u/ryan-blunden)\
**Post date:** [March 23, 2021, 11:13pm UTC](https://community.doppler.com/t/executable-file-not-found-in-path/150/6 "2021-03-23T23:13:23Z")

</div>

Hey Max,

That’s very strange.

Can you try providing the full path to the `cypress` binary, e.g. `doppler run -- /usr/local/bin/cypress run`.
