You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I wanted to install red with npm install reds I run into the following Error:
D:\workspace_js\node-track-file-changes\node_modules\reds\node_modules\redis\node_modules\hiredis>node "D:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\no
gyp.js" rebuild
gyp info it worked if it ends with ok
gyp info using node-gyp@0.10.10
gyp info using node@0.10.20 | win32 | x64
gyp info spawn python
gyp info spawn args [ 'D:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\gyp\\gyp',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-G',
gyp info spawn args 'msvs_version=auto',
gyp info spawn args '-I',
gyp info spawn args 'D:\\workspace_js\\node-track-file-changes\\node_modules\\reds\\node_modules\\redis\\node_modules\\hiredis\\build\\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'D:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\933\\.node-gyp\\0.10.20\\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\\Users\\933\\.node-gyp\\0.10.20',
gyp info spawn args '-Dmodule_root_dir=D:\\workspace_js\\node-track-file-changes\\node_modules\\reds\\node_modules\\redis\\node_modules\\hiredis',
gyp info spawn args '--depth=.',
gyp info spawn args '--generator-output',
gyp info spawn args 'D:\\workspace_js\\node-track-file-changes\\node_modules\\reds\\node_modules\\redis\\node_modules\\hiredis\\build',
gyp info spawn args '-Goutput_dir=.' ]
gyp info spawn C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
gyp info spawn args [ 'build/binding.sln',
gyp info spawn args '/clp:Verbosity=minimal',
gyp info spawn args '/nologo',
gyp info spawn args '/p:Configuration=Release;Platform=x64' ]
Die Projekte in dieser Projektmappe werden nacheinander erstellt. Um eine parallele Erstellung zu ermöglichen, müssen Sie den Schalter "/m" hinzufügen.
hiredis.c
async.c
net.c
sds.c
..\..\deps\hiredis\net.c(35): fatal error C1083: Cannot open include file: 'sys/socket.h': No such file or directory [D:\workspace_js\node-track-file-changes\node_modules\reds\node_modules\redis\node
_modules\hiredis\build\deps\hiredis.vcxproj]
..\..\deps\hiredis\hiredis.c(35): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory [D:\workspace_js\node-track-file-changes\node_modules\reds\node_modules\redis\node
_modules\hiredis\build\deps\hiredis.vcxproj]
..\..\deps\hiredis\async.c(35): fatal error C1083: Cannot open include file: 'strings.h': No such file or directory [D:\workspace_js\node-track-file-changes\node_modules\reds\node_modules\redis\node_
modules\hiredis\build\deps\hiredis.vcxproj]
d:\workspace_js\node-track-file-changes\node_modules\reds\node_modules\redis\node_modules\hiredis\deps\hiredis\sds.h(45): error C2054: expected '(' to follow 'inline' (..\..\deps\hiredis\sds.c) [D:\w
orkspace_js\node-track-file-changes\node_modules\reds\node_modules\redis\node_modules\hiredis\build\deps\hiredis.vcxproj]
d:\workspace_js\node-track-file-changes\node_modules\reds\node_modules\redis\node_modules\hiredis\deps\hiredis\sds.h(45): error C2085: 'sdslen' : not in formal parameter list (..\..\deps\hiredis\sds.
c) [D:\workspace_js\node-track-file-changes\node_modules\reds\node_modules\redis\node_modules\hiredis\build\deps\hiredis.vcxproj]
d:\workspace_js\node-track-file-changes\node_modules\reds\node_modules\redis\node_modules\hiredis\deps\hiredis\sds.h(45): error C2143: syntax error : missing ';' before '{' (..\..\deps\hiredis\sds.c)
[D:\workspace_js\node-track-file-changes\node_modules\reds\node_modules\redis\node_modules\hiredis\build\deps\hiredis.vcxproj]
d:\workspace_js\node-track-file-changes\node_modules\reds\node_modules\redis\node_modules\hiredis\deps\hiredis\sds.h(50): error C2054: expected '(' to follow 'inline' (..\..\deps\hiredis\sds.c) [D:\w
orkspace_js\node-track-file-changes\node_modules\reds\node_modules\redis\node_modules\hiredis\build\deps\hiredis.vcxproj]
d:\workspace_js\node-track-file-changes\node_modules\reds\node_modules\redis\node_modules\hiredis\deps\hiredis\sds.h(50): error C2085: 'sdsavail' : not in formal parameter list (..\..\deps\hiredis\sd
s.c) [D:\workspace_js\node-track-file-changes\node_modules\reds\node_modules\redis\node_modules\hiredis\build\deps\hiredis.vcxproj]
d:\workspace_js\node-track-file-changes\node_modules\reds\node_modules\redis\node_modules\hiredis\deps\hiredis\sds.h(50): error C2143: syntax error : missing ';' before '{' (..\..\deps\hiredis\sds.c)
[D:\workspace_js\node-track-file-changes\node_modules\reds\node_modules\redis\node_modules\hiredis\build\deps\hiredis.vcxproj]
..\..\deps\hiredis\sds.c(53): warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data [D:\workspace_js\node-track-file-changes\node_modules\reds\node_modules\redis\node_modules\
hiredis\build\deps\hiredis.vcxproj]
..\..\deps\hiredis\sds.c(83): warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data [D:\workspace_js\node-track-file-changes\node_modules\reds\node_modules\redis\no
de_modules\hiredis\build\deps\hiredis.vcxproj]
..\..\deps\hiredis\sds.c(104): warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data [D:\workspace_js\node-track-file-changes\node_modules\reds\node_modules\redis\node_modules
\hiredis\build\deps\hiredis.vcxproj]
..\..\deps\hiredis\sds.c(122): warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data [D:\workspace_js\node-track-file-changes\node_modules\reds\node_modules\redis\node_modules
\hiredis\build\deps\hiredis.vcxproj]
..\..\deps\hiredis\sds.c(123): warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data [D:\workspace_js\node-track-file-changes\node_modules\reds\node_modules\redis\node_modules
\hiredis\build\deps\hiredis.vcxproj]
..\..\deps\hiredis\sds.c(135): warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data [D:\workspace_js\node-track-file-changes\node_modules\reds\node_modules\redis\node_modules
\hiredis\build\deps\hiredis.vcxproj]
..\..\deps\hiredis\sds.c(136): warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data [D:\workspace_js\node-track-file-changes\node_modules\reds\node_modules\redis\node_modules
\hiredis\build\deps\hiredis.vcxproj]
..\..\deps\hiredis\sds.c(157): warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data [D:\workspace_js\node-track-file-changes\node_modules\reds\node_modules\redis\node_modules
\hiredis\build\deps\hiredis.vcxproj]
..\..\deps\hiredis\sds.c(158): warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data [D:\workspace_js\node-track-file-changes\node_modules\reds\node_modules\redis\node_modules
\hiredis\build\deps\hiredis.vcxproj]
..\..\deps\hiredis\sds.c(179): warning C4013: 'va_copy' undefined; assuming extern returning int [D:\workspace_js\node-track-file-changes\node_modules\reds\node_modules\redis\node_modules\hiredis\bui
ld\deps\hiredis.vcxproj]
..\..\deps\hiredis\sds.c(214): warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data [D:\workspace_js\node-track-file-changes\node_modules\reds\node_modules\redis\node_modules
\hiredis\build\deps\hiredis.vcxproj]
..\..\deps\hiredis\sds.c(215): warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data [D:\workspace_js\node-track-file-changes\node_modules\reds\node_modules\redis\node_modules
\hiredis\build\deps\hiredis.vcxproj]
..\..\deps\hiredis\sds.c(225): warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data [D:\workspace_js\node-track-file-changes\node_modules\reds\node_modules\redis\node_modules
\hiredis\build\deps\hiredis.vcxproj]
..\..\deps\hiredis\sds.c(229): warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data [D:\workspace_js\node-track-file-changes\node_modules\reds\node_modules\redis\node_modules
\hiredis\build\deps\hiredis.vcxproj]
..\..\deps\hiredis\sds.c(237): warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data [D:\workspace_js\node-track-file-changes\node_modules\reds\node_modules\redis\node_modules
\hiredis\build\deps\hiredis.vcxproj]
..\..\deps\hiredis\sds.c(245): warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data [D:\workspace_js\node-track-file-changes\node_modules\reds\node_modules\redis\node_modules
\hiredis\build\deps\hiredis.vcxproj]
..\..\deps\hiredis\sds.c(246): warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data [D:\workspace_js\node-track-file-changes\node_modules\reds\node_modules\redis\node_modules
\hiredis\build\deps\hiredis.vcxproj]
..\..\deps\hiredis\sds.c(251): warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data [D:\workspace_js\node-track-file-changes\node_modules\reds\node_modules\redis\n
ode_modules\hiredis\build\deps\hiredis.vcxproj]
..\..\deps\hiredis\sds.c(257): warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data [D:\workspace_js\node-track-file-changes\node_modules\reds\node_modules\redis\n
ode_modules\hiredis\build\deps\hiredis.vcxproj]
..\..\deps\hiredis\sds.c(270): warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data [D:\workspace_js\node-track-file-changes\node_modules\reds\node_modules\redis\node_mo
dules\hiredis\build\deps\hiredis.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (D:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "D:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd D:\workspace_js\node-track-file-changes\node_modules\reds\node_modules\redis\node_modules\hiredis
gyp ERR! node -v v0.10.20
gyp ERR! node-gyp -v v0.10.10
gyp ERR! not ok
npm info hiredis@0.1.17 Failed to exec install script
npm info D:\workspace_js\node-track-file-changes\node_modules\reds\node_modules\redis\node_modules\hiredis unbuild
npm info preuninstall hiredis@0.1.17
npm info uninstall hiredis@0.1.17
npm info postuninstall hiredis@0.1.17
npm WARN optional dep failed, continuing hiredis@0.1.17
npm info build D:\workspace_js\node-track-file-changes\node_modules\reds\node_modules\redis
npm info linkStuff redis@0.7.2
npm info install redis@0.7.2
npm info postinstall redis@0.7.2
npm info build D:\workspace_js\node-track-file-changes\node_modules\reds
npm info linkStuff reds@0.2.4
npm info install reds@0.2.4
npm info postinstall reds@0.2.4
reds@0.2.4 node_modules\reds
├── natural@0.1.17 (underscore@1.7.0, apparatus@0.0.8, sylvester@0.0.21)
└── redis@0.7.2
npm info ok
System: Windows7 (64 Bit)
Node: v0.10.20
Edited: Ah ok its the hiredis modul that makes problem.
The text was updated successfully, but these errors were encountered:
Yep hiredis / redis is the issue. I don't think it works out-of-the box - try installing (not using NPM) the windows forkhiredis fork. I personally don't have any experience with it though.
The redis module should be able able to use the pure JS module rather than hiredis - so not sure why this happening. But it isn't an issue with reds.
When I wanted to install red with
npm install reds
I run into the following Error:System: Windows7 (64 Bit)
Node: v0.10.20
Edited: Ah ok its the
hiredis
modul that makes problem.The text was updated successfully, but these errors were encountered: