Help not working.
apm help acts as expected, but apm help <command> just brings up the same text.
$ apm help clean
apm - Atom Package Manager powered by https://atom.io
Usage: apm <command>
where <command> is one of:
clean, config, dedupe, deinstall, delete, dev, develop, disable, docs,
enable, erase, featured, home, i, init, install, link, linked, links, list,
ln, lns, login, ls, open, outdated, publish, rebuild, rebuild-module-cache,
remove, rm, search, show, star, starred, stars, test, uninstall, unlink,
unpublish, unstar, update, upgrade, view.
Run `apm help <command>` to see the more details about a specific command.
Options:
--color Enable colored output [boolean] [default: true]
-v, --version Print the apm version
-h, --help Print this usage message
Prefix an option with `no-` to set it to false such as --no-color to disable
colored output.
Versions
$ apm -v
apm 1.9.2
npm 2.13.3
node 0.10.40
python 2.7.11
git 2.8.2.windows.1
visual studio 2015
I'm unable to reproduce this on OS X. Looks like a Windows-specific bug.
@DamnedScholar Are you running apm from a Bash-like shell? E.g. git-bash, Cygwin, etc.
/cc @damieng
I use clink for my shell, but as it happens I have both Cygwin and git-bash installed. Git-bash works as expected, so it definitely seems to be an issue with cmd.exe. Cygwin errors when trying to find Node, but it's a Cygwin-oriented error:
$ apm help
/cygdrive/c/Users/stick/AppData/Local/atom/bin/../app-1.7.4/resources/cli/apm.sh: line 2: $'\r': command not found
/cygdrive/c/Users/stick/AppData/Local/atom/bin/../app-1.7.4/resources/cli/apm.sh: line 4: /cygdrive/c/Users/stick/AppDat/../app/apm/bin/node.exe: No such file or directory
I am having this same problem. I will post the solution if I find it.
I'm not able reproduce this on master or on 1.8. Here's my output from Command Prompt:
C:\Users\damie>apm help clean
Usage: apm clean
Deletes all packages in the node_modules folder that are not referenced
as a dependency in the package.json file.
Options:
-h, --help Print this usage message
Prefix an option with `no-` to set it to false such as --no-color to disable
colored output.
C:\Users\damie>where apm
C:\Users\damie\AppData\Local\atom\bin\apm
C:\Users\damie\AppData\Local\atom\bin\apm.cmd
Can you try the 'where apm' to see what it is picking up?
That cygwin error is normally caused by line endings. It expects unix by by default git for Windows does the autocrlf. Are you running a released build or dev-built?
Additionally can you also paste the contents of your %localappdata%\atom\bin\apm.cmd file here?
> where apm
C:\Users\stick\AppData\Local\atom\bin\apm
C:\Users\stick\AppData\Local\atom\bin\apm.cmd
That cygwin error is normally caused by line endings. It expects unix by by default git for Windows does the autocrlf. Are you running a released build or dev-built?
I don't care about cygwin. I don't use it for anything, but thanks for the tip. If I ever need to do something and see an error about \r, I'll go convert some line endings.
Additionally can you also paste the contents of your %localappdata%\atom\bin\apm.cmd file here?
@echo off
"%~dp0\..\app-1.8.0\resources\app\apm\bin\apm.cmd" %*
And that file contains
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" --harmony_collections "%~dp0/../lib/cli.js" %*
) ELSE (
node.exe --harmony_collections "%~dp0/../lib/cli.js" %*
)
Mine actually points to the apm.cmd in the atom resources\cli folder rather than the one in app\apm\bin but even running the one in there directly on my machine seemed fine. You could try changing your atom.cmd in /bin/ to point there.
It sounds like it's dropping arguments but the %* in both files indicates everything should be passed along.