Skip to content

Commit

Permalink
Merge pull request #331 from deankevorkian/fix-atom-windows-path-spaces
Browse files Browse the repository at this point in the history
Wrap the apm command in quotes in case it has spaces.
  • Loading branch information
Anees Iqbal committed Feb 15, 2021
2 parents 26101f8 + bbaf9b0 commit b6915f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/index.ts
Expand Up @@ -128,7 +128,7 @@ const INSTALL_VALIDATION_REGEXP = /(?:Installing|Moving) (.*?) to .* (.*)/
export async function installPackage(dependency: DependencyResolved): Promise<void> {
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,
})

Expand Down

0 comments on commit b6915f4

Please sign in to comment.