Skip to content

Commit

Permalink
Merge pull request #4017 from remotion-dev/could-not-find-executable-…
Browse files Browse the repository at this point in the history
…to-run
  • Loading branch information
JonnyBurger authored Jun 19, 2024
2 parents 2c1a2c8 + 9341c8a commit 3a890cc
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 5 deletions.
1 change: 0 additions & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
"prettier-plugin-organize-imports": "3.2.4",
"react": "18.3.1",
"react-dom": "18.3.1",
"rimraf": "^3.0.2",
"vitest": "0.31.1",
"webpack": "5.83.1",
"zod": "3.22.3"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ src: url(font.woff2) format(woff2);
src: url('font.woff2') format('woff2');
```

To fix the issue, always include quotes.
To fix the issue, always include quotes.
Use [`@remotion/fonts`](docs/fonts-api) to use an abstraction that helps you avoid this mistake.
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
title: Could not determine executable to run
crumb: "Troubleshooting"
---

If you receive the following error:

```
npm ERR! could not determine executable to run
```

It may be because you are using the `npx` command but the project is configured to use a different package manager.

If [Corepack](https://www.totaltypescript.com/how-to-use-corepack) is enabled, the `packageManager` property in `package.json` matters:

```json title="package.json"
{
"packageManager": "[email protected]"
}
```

If the package manager is set to something else than `npm`, then the `npx` command may give this error message.

## Resolution

Use the correct command runner for your project:

- If the package manager is set to `pnpm`, use `pnpm exec` instead of `npx`.
- If the package manager is set to `yarn`, use `yarn` instead of `npx`.
- If the package manager is set to `bun`, use `bunx` instead of `npx`.
1 change: 1 addition & 0 deletions packages/docs/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -817,6 +817,7 @@ module.exports = {
"troubleshooting/bundling-bundle",
"troubleshooting/browser-launch",
"troubleshooting/sigkill",
"troubleshooting/could-not-find-executable-to-run",
],
},
{
Expand Down
3 changes: 0 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3a890cc

Please sign in to comment.