diff --git a/src/hooks/dependencies.ts b/src/hooks/dependencies.ts index 3f9aab1..dc706b7 100644 --- a/src/hooks/dependencies.ts +++ b/src/hooks/dependencies.ts @@ -47,8 +47,14 @@ const registerInstallationHook = ( if (!installedPackageManagerNames.length) return // If version 1 of Deno is installed, it will not be suggested because it doesn't have "deno install". if (installedPackageManagerNames.includes('deno')) { - const { stdout } = await execa('deno', ['-v']) - if (stdout.split(' ')[1].split('.')[0] == '1') { + let isVersion1 = false + try { + const { stdout } = await execa('deno', ['-v']) + isVersion1 = stdout.split(' ')[1].split('.')[0] == '1' + } catch { + isVersion1 = true + } + if (isVersion1) { installedPackageManagerNames.splice( installedPackageManagerNames.indexOf('deno'), 1,