-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4017 from remotion-dev/could-not-find-executable-…
…to-run
- Loading branch information
Showing
5 changed files
with
33 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
packages/docs/docs/troubleshooting/could-not-find-executable-to-run.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.