Open hanxue opened 11 years ago
Hi, @hanxue. Thanks for the full report. It looks like it's failing to find winsock2.h
when trying to build socket.io
. Perhaps there is a path configuration issue in your environment? Or you don't have winsock2.h
on your system?
I see you've encountered the same problem in a different project: https://github.com/einaros/ws/issues/146, which makes it sound more like a configuration issue in your environment.
Are you able to npm install socket.io
on its own?
@jedp I have the same problem.
But I can install socket.io
.
Only node-gcstats
can not install.
Maybe because memwatch?
Becasue I see you use git://github.com/jedp/node-memwatch#incremental
which is version 0.1.2
.
I can install version 0.2.2
, but can not install 0.1.2
.
PS D:\workspace_git\node-memwatch-demo> npm ls
leaky@0.0.1 D:\workspace_git\node-memwatch-demo
├─┬ express@2.5.10
│ ├─┬ connect@1.9.2
│ │ └── formidable@1.0.14
│ ├── mime@1.2.4
│ ├── mkdirp@0.3.0
│ └── qs@0.4.2
├── UNMET DEPENDENCY node-gcstats git://github.com/jedp/node-memwatch#incremental
└─┬ socket.io@0.9.6
├── policyfile@0.0.4
├── redis@0.6.7
└─┬ socket.io-client@0.9.6
├─┬ active-x-obfuscator@0.0.1
│ └── zeparser@0.0.5
├── uglify-js@1.2.5
├─┬ ws@0.4.31
│ ├── commander@0.6.1
│ ├── nan@0.3.2
│ ├── options@0.0.5
│ └── tinycolor@0.0.1
└── xmlhttprequest@1.2.2
npm ERR! missing: node-gcstats@git://github.com/jedp/node-memwatch#incremental, required by leaky@0.0.1
npm ERR! not ok code 0
PS D:\workspace_git\node-memwatch-demo>
PS D:\workspace_git\node-memwatch-demo> npm install memwatch@0.1.2
npm http GET https://registry.npmjs.org/memwatch/0.1.2
npm http 200 https://registry.npmjs.org/memwatch/0.1.2
npm http GET https://registry.npmjs.org/memwatch/-/memwatch-0.1.2.tgz
npm http 200 https://registry.npmjs.org/memwatch/-/memwatch-0.1.2.tgz
> memwatch@0.1.2 install D:\workspace_git\node-memwatch-demo\node_modules\memwatch
> make build
'make' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
npm ERR! memwatch@0.1.2 install: `make build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the memwatch@0.1.2 install script.
npm ERR! This is most likely a problem with the memwatch package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! make build
npm ERR! You can get their info via:
npm ERR! npm owner ls memwatch
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\
\npm-cli.js" "install" "memwatch@0.1.2"
npm ERR! cwd D:\workspace_git\node-memwatch-demo
npm ERR! node -v v0.10.22
npm ERR! npm -v 1.3.14
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! D:\workspace_git\node-memwatch-demo\npm-debug.log
npm ERR! not ok code 0
PS D:\workspace_git\node-memwatch-demo> npm install memwatch
npm http GET https://registry.npmjs.org/memwatch
npm http 304 https://registry.npmjs.org/memwatch
> memwatch@0.2.2 install D:\workspace_git\node-memwatch-demo\node_modules\memwatch
> node-gyp rebuild
D:\workspace_git\node-memwatch-demo\node_modules\memwatch>node "C:\Program Files (x86)\nodejs\node_modules\npm\bin\node-
gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。
heapdiff.cc
memwatch.cc
util.cc
init.cc
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xlocale(323): warning C4530: C++ exception handler used,
but unwind semantics are not enabled. Specify /EHsc [D:\workspace_git\node-memwatch-demo\node_modules\memwatch\build\m
emwatch.vcxproj]
c:\users\meteor\.node-gyp\0.10.22\deps\v8\include\v8.h(218): warning C4506: no definition for inline function 'v8::Pers
istent<T> v8::Persistent<T>::New(v8::Handle<T>)' [D:\workspace_git\node-memwatch-demo\node_modules\memwatch\build\memwa
tch.vcxproj]
with
[
T=v8::Object
]
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xlocale(323): warning C4530: C++ exception handler used,
but unwind semantics are not enabled. Specify /EHsc [D:\workspace_git\node-memwatch-demo\node_modules\memwatch\build\m
emwatch.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xlocale(323): warning C4530: C++ exception handler used,
but unwind semantics are not enabled. Specify /EHsc [D:\workspace_git\node-memwatch-demo\node_modules\memwatch\build\m
emwatch.vcxproj]
..\src\memwatch.cc(72): warning C4244: 'initializing' : conversion from 'time_t' to 'size_t', possible loss of data [D:
\workspace_git\node-memwatch-demo\node_modules\memwatch\build\memwatch.vcxproj]
..\src\memwatch.cc(73): warning C4244: 'initializing' : conversion from 'time_t' to 'int', possible loss of data [D:\wo
rkspace_git\node-memwatch-demo\node_modules\memwatch\build\memwatch.vcxproj]
..\src\memwatch.cc(74): warning C4244: 'initializing' : conversion from 'time_t' to 'int', possible loss of data [D:\wo
rkspace_git\node-memwatch-demo\node_modules\memwatch\build\memwatch.vcxproj]
..\src\memwatch.cc(84): warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data [D:\worksp
ace_git\node-memwatch-demo\node_modules\memwatch\build\memwatch.vcxproj]
..\src\memwatch.cc(147): warning C4244: '=' : conversion from 'double' to 'unsigned int', possible loss of data [D:\wor
kspace_git\node-memwatch-demo\node_modules\memwatch\build\memwatch.vcxproj]
..\src\memwatch.cc(152): warning C4244: '=' : conversion from 'double' to 'unsigned int', possible loss of data [D:\wor
kspace_git\node-memwatch-demo\node_modules\memwatch\build\memwatch.vcxproj]
..\src\memwatch.cc(159): warning C4244: '=' : conversion from 'double' to 'unsigned int', possible loss of data [D:\wor
kspace_git\node-memwatch-demo\node_modules\memwatch\build\memwatch.vcxproj]
c:\users\meteor\.node-gyp\0.10.22\deps\v8\include\v8.h(184): warning C4506: no definition for inline function 'v8::Pers
istent<T> v8::Persistent<T>::New(v8::Handle<T>)' [D:\workspace_git\node-memwatch-demo\node_modules\memwatch\build\memwa
tch.vcxproj]
with
[
T=v8::Object
]
..\src\heapdiff.cc(279): warning C4244: 'argument' : conversion from 'unsigned __int64' to 'v8::SnapshotObjectId', poss
ible loss of data [D:\workspace_git\node-memwatch-demo\node_modules\memwatch\build\memwatch.vcxproj]
..\src\heapdiff.cc(291): warning C4244: 'argument' : conversion from 'unsigned __int64' to 'v8::SnapshotObjectId', poss
ible loss of data [D:\workspace_git\node-memwatch-demo\node_modules\memwatch\build\memwatch.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xmemory(196): warning C4506: no definition for inline fu
nction 'v8::Persistent<T> v8::Persistent<T>::New(v8::Handle<T>)' [D:\workspace_git\node-memwatch-demo\node_modules\memw
atch\build\memwatch.vcxproj]
with
[
T=v8::Object
]
Creating library D:\workspace_git\node-memwatch-demo\node_modules\memwatch\build\Release\memwatch.lib and object D
:\workspace_git\node-memwatch-demo\node_modules\memwatch\build\Release\memwatch.exp
Generating code
Finished generating code
memwatch.vcxproj -> D:\workspace_git\node-memwatch-demo\node_modules\memwatch\build\Release\\memwatch.node
memwatch@0.2.2 node_modules\memwatch
PS D:\workspace_git\node-memwatch-demo>
OS: Windows 7 (64bit) SP1 Node: 0.8.16 NPM: 1.1.69
When I run npm install in the source folder, I get this error
The relevant npm debug log lines are: