Error installing nos-client on windows
See original GitHub issueUnable to install nos-client on windows.
Expected Behavior
Installation of nos-client should be smooth on windows
Current Behavior
Getting below error. I have windows sdk,python installed.
C:\Program Files (x86)\Windows Kits\8.1\Include\um\winnt.h(31): fatal error C1083: Cannot open include file: ‘ctype.h’: No such file or directory [C:\Users\htammare\Documents\GitHub\client\node_modules\node-hid\build\hidapi.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe
failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:237:12)
gyp ERR! System Windows_NT 10.0.10586
gyp ERR! command “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js” “rebuild”
gyp ERR! cwd C:\Users\htammare\Documents\GitHub\client\node_modules\node-hid
Possible Solution
Reinstalling windows sdk. I tried this but no luck yet.
Steps to Reproduce (for bugs)
Use windows machine and clone nos-client and run the first command “yarn install && yarn start”
Context
I wanted to develop a dapp which i am not able to do as i am struck here
Your Environment
Windows 10 Python 2.7.14 node 10.2.1 yarn 1.6.0 npm 6.1.0
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (2 by maintainers)
Top GitHub Comments
I’ve seen this issue a dozen times before with people having Visual Studio installed on their Windows PC.
(not sure if this on is needed aswell - but I’ll throw it in here:
npm install -g node-gyp
)But you sure need to do this:
npm install --global --production windows-build-tools
Closing this issue as it’s resolved.