diff --git a/src/Shiki.php b/src/Shiki.php index ebcf3ef..09c7edc 100644 --- a/src/Shiki.php +++ b/src/Shiki.php @@ -93,10 +93,12 @@ public function getWorkingDirPath(): string protected function callShiki(...$arguments): string { + $home = getenv("HOME"); $command = [ (new ExecutableFinder())->find('node', 'node', [ '/usr/local/bin', '/opt/homebrew/bin', + $home . '/n/bin', // support https://github.com/tj/n ]), 'shiki.js', json_encode(array_values($arguments)),