
Description
I'm trying to execute npm install
to build the site, but I run into an error with the posix
module. Relevant environment details include:
- Windows 10 Pro (x64)
- Node v0.12.7
- Visual Studio Community 2015
- Python 2.7.10
After a quick search for an answer, I came across nodejs/node-gyp#679, which had some helpful suggestions to try assorted environment configurations to get node-gyp
to rebuild properly. I tried out each combination one by one but didn't have any luck.
I noticed when I bumped up my version of Node to v4.x, I get the same failures described in #419.
When executing an npm install
with the environment I listed above, the main error of interest appears to be:
..\src\posix.cc(2): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory [F:\Code\projects\nodeschool.github.io\node_modules\posix\build\posix.vcxproj]
I tried obtaining unistd.h
(and later getopt.c
and getopt.h
) to stash along with the rest of VC++ includes, but hit a road block when something was depending on sys/resources.h
, something POSIX that I can't find a Windows port for.
Has anybody else run into this problem and knows if I'm missing something glaringly obvious?