-
Notifications
You must be signed in to change notification settings - Fork 47
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
npm install fails on Windows #13
Comments
Not sure if this is the same issue, but I get a build error of error C3861: 'uv_get_osfhandle': identifier not found |
Whoops, found that my issue is the same as #11 -- need to update my node.js. Would be good to document the version required; currently the package.json says "node": ">=0.10.0" After installing Node 8.9.4 I am seeing the same issue as the OP: |
I ended up making my own package after not getting any response on this issue, you can view it on my profile (node-filemap). |
Well I need both unix and windows support, so I might take a shot at forking mmap-io and doing a PR if I can get it to play nice. |
Fair enough - if not, I'm supporting both windows and unix with my package - I use mmap-io on unix and node-filemap on windows, then |
Would have liked to fork mmap-io and add windows support, but the API seems too closely tied to *nix. So I've thrown together a very minimal module that fits my requirements here instead. |
Feel free to PR - or fork for own sake. Make is the traditional build tool. I'm rather preoccupied atm, but I try to be swift to merge PRs with fixes. Including the tiniest like version reqs in spec. Cheers! |
Oh, and it should already work for win, btw. If you install make. |
You shouldn't be required make on windows, node gyp should handle everything. |
Yes, it could definitely be worked out, it's up for grabs! |
If anyone has the minutes to take this on, I suggest this approach (which I would accept):
I'm close to a deadline on a massive project, so I have no coding-time away from that atm., but these changes should be fairly easy for anyone feeling inclined. |
On Windows I use chocolatey to install nodejs-lts v8.11.1, miniconda 4.3.21 (Python-2), vcbuildtools 2015.4, and cyg-get 1.2.1 Using cyg-get I install a typical set of tools for C programming: make, gcc, autoconf, automake, bison, flex, etc. Under the bash shell I export a PYTHON variable to reference the Miniconda's python.exe: export PYTHON=$(cygpath -m /cygdrive/c/ProgramData/Miniconda2/python) $ git clone https://github.com/ozra/mmap-io.git $ cd mmap-io $ npm install --save There are a few gripes in the build, I think about pointer vs integer word sizes. $ npm test The test seems affirmative (with one small cosmetic problem at the end) but am really just starting to put time into evaluating it more closely, including some additional tests for sparse file and vm mapping support.
mmap in test is { PROT_READ: 1, Buffer contents, read byte for byte backwards and see that nothing explodes: read out of bounds test
All done |
I'll remove the dependency on GNU Make for the next update, I'll see what else I manage to squeeze into time. |
I've removed dependency on GNUMake, but the build commands still rely on a bunch of "common POSIX apps", so might require a basic setup on windows anyway. Try and see. I'm closing, so open new issue if required. |
NPM install fails on windows with message:
The text was updated successfully, but these errors were encountered: