While install in the package in windows I am facing the node-gyp issue.
..\src\nfc.cc(2): fatal error C1083: Cannot open include file: 'unistd.h': No s
uch file or directory [C:\Users\bhavesh.maheshwari\AppData\Roaming\npm\node_mod
ules\nfc\build\nfc.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe fail
ed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\
npm\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_proces
s.js:200:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodej
s\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "clean" "configu
re" "rebuild"
gyp ERR! cwd C:\Users\bhavesh.maheshwari\AppData\Roaming\npm\node_modules\nfc
gyp ERR! node -v v4.5.0
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\
node_modules\npm\bin\npm-cli.js" "install" "nfc" "-g"
npm ERR! node v4.5.0
npm ERR! npm v2.15.9
npm ERR! code ELIFECYCLE
npm ERR! nfc@0.3.3 install: node-gyp clean configure rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the nfc@0.3.3 install script 'node-gyp clean configure rebuil
d'.
npm ERR! This is most likely a problem with the nfc package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp clean configure rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs nfc
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls nfc
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! E:\Projects\vasco_comp\sense_id\npm-debug.log.
While install in the package in windows I am facing the node-gyp issue.
..\src\nfc.cc(2): fatal error C1083: Cannot open include file: 'unistd.h': No s uch file or directory [C:\Users\bhavesh.maheshwari\AppData\Roaming\npm\node_mod ules\nfc\build\nfc.vcxproj] gyp ERR! build error gyp ERR! stack Error:
C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe
fail ed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\ npm\node_modules\node-gyp\lib\build.js:276:23) gyp ERR! stack at emitTwo (events.js:87:13) gyp ERR! stack at ChildProcess.emit (events.js:172:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_proces s.js:200:12) gyp ERR! System Windows_NT 6.3.9600 gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodej s\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "clean" "configu re" "rebuild" gyp ERR! cwd C:\Users\bhavesh.maheshwari\AppData\Roaming\npm\node_modules\nfc gyp ERR! node -v v4.5.0 gyp ERR! node-gyp -v v3.4.0 gyp ERR! not ok npm ERR! Windows_NT 6.3.9600 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\ node_modules\npm\bin\npm-cli.js" "install" "nfc" "-g" npm ERR! node v4.5.0 npm ERR! npm v2.15.9 npm ERR! code ELIFECYCLEnpm ERR! nfc@0.3.3 install:
node-gyp clean configure rebuild
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the nfc@0.3.3 install script 'node-gyp clean configure rebuil d'. npm ERR! This is most likely a problem with the nfc package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp clean configure rebuild npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs nfc npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm ERR! npm owner ls nfc npm ERR! There is likely additional logging output above.npm ERR! Please include the following file with any support request: npm ERR! E:\Projects\vasco_comp\sense_id\npm-debug.log.
Node version 4.5 npm version 2.15.9
Please resolve the issue.