Another probable problem that I didn’t mention is that I ran these commands from the Cygwin rxvt window.
I just tried to completely remove nodejs and reinstall it.
When I ran the rxvt window again and ran "npm install -g karma", it failed with the following:
/c/Program Files/nodejs/npm: line 2: $'\r': command not found /c/Program Files/nodejs/npm: line 4: $'\r': command not found /c/Program Files/nodejs/npm: line 5: syntax error near unexpected token `$'in\r'' 'c/Program Files/nodejs/npm: line 5: `case `uname` in
This led me to search for this error on the Internet, and I found this thread , which means that it just does not support Cygwin (unsuccessful, but not a huge problem).
When I raised the simple, ugly, unfriendly cmd window, both karma setup and init karma completed successfully (or at least that gave me the first question in the init process).
David M. Karr
source share