This will open a native cygwin bash.exe window, from here you run the interpreter or an any troubling package command that results in a EINVAL. Also you will not be able to run the interpreter directly in MINTTY, anytime I want to do these things I run: cygstart /bin/bash Then to make npm run without windows to linux issues I launch cygwin in admin mode then run: dos2unix '/cygdrive/c/Program Files/nodejs/npm'Īt this point running files and most npm packages will run in MINTTY just fine, although every once and awhile you will run into EINVAL issues with certain npm packages as karma. If you run a 32 bit version of node: export PATH= $PATH: "/cygdrive/c/Program Files (x86)/nodejs/" In my /cygwin/home//.bashrc I add node to path so cygwin can find it export PATH= $PATH: "/cygdrive/c/Program Files/nodejs/" I still am not sure why these EINVAL errors happen 100% but the following are the steps and tricks I use to get node working. Node in my experience runs fine in cygwin, what Node usually has EINVAL errors in seems to be MINTTY which is a terminal emulation 'skin' that is default to cygwin.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |