Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install with -g is a no-go in windows #8

Open
shenanigans opened this issue Oct 26, 2015 · 3 comments
Open

install with -g is a no-go in windows #8

shenanigans opened this issue Oct 26, 2015 · 3 comments

Comments

@shenanigans
Copy link

Installing with -g in windows adds substantial bytes to the front of the pathname and risks exceeding the pathname length restriction in Windows. This is sometimes ok for Node.js apps but attempting to build a native module beyond the length limit is a problem. By the time you get into feathers' socket.io's engine.io's unicode parser your jumbo paths will get rejected by Visual Studio.

I was able to run mysam just fine by installing it locally to a short path. Specifically I was at c:\code\sam\. My recommended fix is to just update the installation instructions to warn windows users of the issue and workaround.

@daffl
Copy link
Member

daffl commented Oct 27, 2015

I'm wondering if we can make sure that it doesn't need to compile anything (e.g. since Sam only supports modern browsers use Primus plain websockets). From what I understand the path length isn't an issue then. Also, glad that it works on Windows besides that, I have to admit I didn't test it yet :)
If you could make pull request with a note about Windows installation that would be much appreciated.

Thank you

@CKarper
Copy link

CKarper commented Sep 3, 2016

npm3 should really make this problem less pressing. Since it installs dependencies as flat as possible, it keeps paths shorter.

@derhuerst
Copy link

Global install is often not necessary. Installing locally and running via ./node_modules/.bin/whatever works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants