node版本-v0.10.29 , visual studio 2012, py 2.7.5 npm install socket.io的时候报以下错误:
> [email protected] install D:\coding\test-socket.io\node_modules\socket.io\node_modules
\engine.io\node_modules\ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)
-
D:\coding\test-socket.io\node_modules\socket.io\node_modules\engine.io\node_modu
les\ws>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\no
de_modules\node-gyp\bin\node-gyp.js" rebuild
在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。
bufferutil.cc
D:\coding\test-socket.io\node_modules\socket.io\node_modules\engine.io\node_mod
ules\ws\node_modules\nan\nan.h(781): warning C4267: “参数”: 从“size_t”转换到
“int”,可能丢
失数据 [D:\coding\test-socket.io\node_modules\socket.io\node_modules\engine.io\n
od
e_modules\ws\build\bufferutil.vcxproj]
D:\coding\test-socket.io\node_modules\socket.io\node_modules\engine.io\node_mod
ules\ws\node_modules\nan\nan.h(798): warning C4267: “参数”: 从“size_t”转换到
“int”,可能丢
失数据 [D:\coding\test-socket.io\node_modules\socket.io\node_modules\engine.io\n
od
e_modules\ws\build\bufferutil.vcxproj]
D:\coding\test-socket.io\node_modules\socket.io\node_modules\engine.io\node_mod
ules\ws\node_modules\nan\nan.h(829): warning C4267: “参数”: 从“size_t”转换到
“int”,可能丢
失数据 [D:\coding\test-socket.io\node_modules\socket.io\node_modules\engine.io\n
od
e_modules\ws\build\bufferutil.vcxproj]
D:\coding\test-socket.io\node_modules\socket.io\node_modules\engine.io\node_mod
ules\ws\node_modules\nan\nan.h(858): warning C4267: “参数”: 从“size_t”转换到
“int”,可能丢
失数据 [D:\coding\test-socket.io\node_modules\socket.io\node_modules\engine.io\n
od
e_modules\ws\build\bufferutil.vcxproj]
D:\coding\test-socket.io\node_modules\socket.io\node_modules\engine.io\node_mod
ules\ws\node_modules\nan\nan.h(646): warning C4244: “初始化”: 从“__int64”转
换到“int”,可
能丢失数据 [D:\coding\test-socket.io\node_modules\socket.io\node_modules\engine.
io\n
ode_modules\ws\build\bufferutil.vcxproj]
D:\coding\test-socket.io\node_modules\socket.io\node_modules\engine.i
o\node_modules\ws\node_modules\nan\nan.h(840): 参见对正在编译的函数 模板 实例
化“size_t _nan_
base64_decode<char>(char *,size_t,const TypeName *,const size_t)”的引用
with
[
TypeName=char
]
C:\Users\Administrator\.node-gyp\0.10.29\deps\v8\include\v8.h(179): warning C45
06: 内联函数“v8::Persistent<T> v8::Persistent<T>::New(v8::Handle<T>)”没有定义
[D:\codin
g\test-socket.io\node_modules\socket.io\node_modules\engine.io\node_modules\ws\
build\bufferutil.vcxproj]
with
[
T=v8::Object
]
正在创建库 D:\coding\test-socket.io\node_modules\socket.io\node_modules\eng
ine.
io\node_modules\ws\build\Release\bufferutil.lib 和对象 D:\coding\test-socket.i
o\
node_modules\socket.io\node_modules\engine.io\node_modules\ws\build\Release\b
ufferutil.exp
正在生成代码
已完成代码的生成
bufferutil.vcxproj -> D:\coding\test-socket.io\node_modules\socket.io\node_mo
dules\engine.io\node_modules\ws\build\Release\\bufferutil.node
validation.cc
D:\coding\test-socket.io\node_modules\socket.io\node_modules\engine.io\node_mod
ules\ws\node_modules\nan\nan.h(781): warning C4267: “参数”: 从“size_t”转换到
“int”,可能丢
失数据 [D:\coding\test-socket.io\node_modules\socket.io\node_modules\engine.io\n
od
e_modules\ws\build\validation.vcxproj]
D:\coding\test-socket.io\node_modules\socket.io\node_modules\engine.io\node_mod
ules\ws\node_modules\nan\nan.h(798): warning C4267: “参数”: 从“size_t”转换到
“int”,可能丢
失数据 [D:\coding\test-socket.io\node_modules\socket.io\node_modules\engine.io\n
od
e_modules\ws\build\validation.vcxproj]
D:\coding\test-socket.io\node_modules\socket.io\node_modules\engine.io\node_mod
ules\ws\node_modules\nan\nan.h(829): warning C4267: “参数”: 从“size_t”转换到
“int”,可能丢
失数据 [D:\coding\test-socket.io\node_modules\socket.io\node_modules\engine.io\n
od
e_modules\ws\build\validation.vcxproj]
D:\coding\test-socket.io\node_modules\socket.io\node_modules\engine.io\node_mod
ules\ws\node_modules\nan\nan.h(858): warning C4267: “参数”: 从“size_t”转换到
“int”,可能丢
\失数据 [D:\coding\test-socket.io\node_modules\socket.io\node_modules\engine.io\
nod
D:\coding\test-socket.io\node_modules\socket.io\node_modules\engine.io\node_mod
ules\ws\node_modules\nan\nan.h(646): warning C4244: “初始化”: 从“__int64”转
换到“int”,可
能丢失数据 [D:\coding\test-socket.io\node_modules\socket.io\node_modules\engine.
io\n
ode_modules\ws\build\validation.vcxproj]
D:\coding\test-socket.io\node_modules\socket.io\node_modules\engine.i
o\node_modules\ws\node_modules\nan\nan.h(840): 参见对正在编译的函数 模板 实例
化“size_t _nan_
base64_decode<char>(char *,size_t,const TypeName *,const size_t)”的引用
with
[
TypeName=char
]
C:\Users\Administrator\.node-gyp\0.10.29\deps\v8\include\v8.h(179): warning C45
06: 内联函数“v8::Persistent<T> v8::Persistent<T>::New(v8::Handle<T>)”没有定义
[D:\codin
g\test-socket.io\node_modules\socket.io\node_modules\engine.io\node_modules\ws\
build\validation.vcxproj]
with
[
T=v8::Object
]
正在创建库 D:\coding\test-socket.io\node_modules\socket.io\node_modules\eng
ine.
io\node_modules\ws\build\Release\validation.lib 和对象 D:\coding\test-socket.i
o\
node_modules\socket.io\node_modules\engine.io\node_modules\ws\build\Release\v
alidation.exp
正在生成代码
已完成代码的生成
validation.vcxproj -> D:\coding\test-socket.io\node_modules\socket.io\node_mo
dules\engine.io\node_modules\ws\build\Release\\validation.node
|
新手求解救。。。
2 回复