diff --git a/src/helpers/index.ts b/src/helpers/index.ts index c10e743..739a58f 100644 --- a/src/helpers/index.ts +++ b/src/helpers/index.ts @@ -126,9 +126,9 @@ const INSTALL_VALID_TICKS = new Set(['✓', 'done']) const INSTALL_VALIDATION_REGEXP = /(?:Installing|Moving) (.*?) to .* (.*)/ // Example success output: Uninstalling linter-ui-default ✓ export async function installPackage(dependency: DependencyResolved): Promise { - const apmPath = IS_ATOM ? atom.packages.getApmPath() : 'apm' + const apmPath = IS_ATOM ? `"${atom.packages.getApmPath()}"` : 'apm' - const { stdout, stderr } = await spawn(`"${apmPath}"`, ['install', dependency.name, '--production', '--color', 'false'], { + const { stdout, stderr } = await spawn(apmPath, ['install', dependency.name, '--production', '--color', 'false'], { shell: true, })