Skip to content

🎥 Make videos programmatically with React

Docs: Explain "could not find executable to run" error

Jonny Burgera2aff15217ba
diff --git a/packages/core/package.json b/packages/core/package.json
index 3fd377d232..1ba2ff7369 100644
--- a/packages/core/package.json
+++ b/packages/core/package.json
@@ -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"
diff --git a/packages/docs/docs/troubleshooting/could-not-be-parsed-as-a-value-list.mdx b/packages/docs/docs/troubleshooting/could-not-be-parsed-as-a-value-list.mdx
index 13c0b29088..027ca77616 100644
--- a/packages/docs/docs/troubleshooting/could-not-be-parsed-as-a-value-list.mdx
+++ b/packages/docs/docs/troubleshooting/could-not-be-parsed-as-a-value-list.mdx
@@ -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/fonts-api) to use an abstraction that helps you avoid this mistake.
diff --git a/packages/docs/docs/troubleshooting/could-not-find-executable-to-run.mdx b/packages/docs/docs/troubleshooting/could-not-find-executable-to-run.mdx
new file mode 100644
index 0000000000..b3bf141078
--- /dev/null
+++ b/packages/docs/docs/troubleshooting/could-not-find-executable-to-run.mdx
@@ -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`.
diff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.js
index bd1c4e1aca..9c02a39995 100644
--- a/packages/docs/sidebars.js
+++ b/packages/docs/sidebars.js
@@ -817,6 +817,7 @@ module.exports = {
"troubleshooting/bundling-bundle",
"troubleshooting/browser-launch",
"troubleshooting/sigkill",
+ "troubleshooting/could-not-find-executable-to-run",
],
},
{
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 7369b1cebd..55c9ec3684 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -499,9 +499,6 @@ importers:
react-dom:
specifier: 18.3.1
version: 18.3.1([email protected])
- rimraf:
- specifier: ^3.0.2
- version: 3.0.2
vitest:
specifier: 0.31.1