Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

apm --version doesn't work in git bash on Windows #846

@kaiyoma

Description

@kaiyoma

Prerequisites

Description

apm --version doesn't work in git bash on Windows.

Steps to Reproduce

  1. Run apm --version in the git bash shell.

Expected behavior: [What you expect to happen]
It should work.

Actual behavior: [What actually happens]

$ apm --version
internal/child_process.js:323
    throw errnoException(err, 'spawn');
    ^

Error: spawn UNKNOWN
    at _errnoException (util.js:1024:11)
    at ChildProcess.spawn (internal/child_process.js:323:11)
    at exports.spawn (child_process.js:502:9)
    at EventEmitter.<anonymous> (...\AppData\Local\atom\app-1.36.1\resources\app\apm\lib\apm-cli.js:169:17)
    at _combinedTickCallback (internal/process/next_tick.js:131:7)
    at process._tickCallback (internal/process/next_tick.js:180:9)

Reproduces how often: [What percentage of the time does it reproduce?]
100%

Versions

OS: Windows 10

$ atom --version

Atom    : 1.36.1
Electron: 2.0.18
Chrome  : 61.0.3163.100
Node    : 8.9.3

Additional Information

The command works correctly from the normal command prompt and from PowerShell:

C:\>apm --version
apm  2.1.3
npm  6.2.0
node 8.9.3 x64
atom 1.36.1
python 2.7.15
git 2.19.1.windows.1
visual studio 2015

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions