Skip to content

🎥 Make videos programmatically with React

make message a bit more compact

Jonny Burger75f0820c60dd
diff --git a/packages/docs/docs/troubleshooting/rosetta.md b/packages/docs/docs/troubleshooting/rosetta.md
index d6b783a4d9..a53005a91a 100644
--- a/packages/docs/docs/troubleshooting/rosetta.md
+++ b/packages/docs/docs/troubleshooting/rosetta.md
@@ -8,13 +8,13 @@ Running Remotion on Apple Silicon (M1 chip) under Rosetta can be up to 2x slower
The recommended way to run Remotion on Apple Silicon is using Node 16 with the native arm64 architecture.
-If you encounter the following warning while using `@remotion/renderer`
+If you encounter the following warning while using `@remotion/renderer`:
+
```
Apple Silicon detected but running under Rosetta (not arm64 architecture). This will cause performance issues.
Recommended actions:
- Upgrade to Node 16.0.0 or later
- Run Node using `arch -arm64` architecture
-See https://remotion.dev/docs/troubleshooting/rosetta for more information.
```
You are either using Node 14 (which uses Rosetta on Apple M1 chips), or you are running a node version installed with `arch -x86_64`.
@@ -25,6 +25,7 @@ You are either using Node 14 (which uses Rosetta on Apple M1 chips), or you are
1. Install Node and run it natively
For example, installing node natively using nvm:
+
```
arch -arm64 zsh
nvm install 16
diff --git a/packages/renderer/src/check-apple-silicon.ts b/packages/renderer/src/check-apple-silicon.ts
index 551a588a58..e86bcc41ea 100644
--- a/packages/renderer/src/check-apple-silicon.ts
+++ b/packages/renderer/src/check-apple-silicon.ts
@@ -15,13 +15,17 @@ export const warnIfAppleSiliconIsNotUsingArm64Architecture = () => {
);
console.warn(
- `Apple Silicon detected but running under Rosetta (not arm64 architecture). This will cause performance issues.\n` +
- `Recommended actions:\n` +
- (recommendNodeUpgrade
+ [
+ `⚠️ Apple Silicon detected but Node.JS running under Rosetta. This will cause performance issues.\n`,
+ `Recommended actions:\n`,
+ recommendNodeUpgrade
? ` - Upgrade to Node ${recommendedNodeVersion} or later\n`
- : '') +
- ' - Run Node using `arch -arm64` architecture\n' +
- 'See https://remotion.dev/docs/troubleshooting/rosetta for more information.'
+ : ' - Run Node using `arch -arm64` architecture\n',
+ 'See https://remotion.dev/docs/troubleshooting/rosetta for more information.',
+ '---',
+ ]
+ .filter(Boolean)
+ .join('\n')
);
}
};