npm install bcrypt - 没有错误,但在 windows 7 上出现大量警告
npm install bcrypt - no errors but a whole raft of warnings on windows 7
好的,所以这里所有的 brcypt 问题似乎都与 node-gyp 相关,但是在使用 bcrypt 一段时间后,我终于成功安装了它,node-gyp 似乎很高兴,但我仍然相当多的警告。它显然与 visual studio 有关,但我找不到任何关于这些的具体信息。
我在 windows 7 x64 ultimate 上并且有:
- visual studio 2012 年末
- visual studio 2013终极
- python 0.2.7.10
- windows 7 x64 sdk 所有更新
- Win64OpenSSL-1_0_lt
我收到以下警告:
D:\WebstormProjects\authapp>npm install --save bcrypt
npm WARN package.json authapp@1.0.0 No description
npm WARN package.json authapp@1.0.0 No README data
bcrypt@0.8.6 install D:\WebstormProjects\authapp\node_modules\bcrypt
node-gyp rebuild
D:\WebstormProjects\authapp\node_modules\bcrypt>if not defined npm_config_node_gyp (node "C:\Program Files\n
odejs\node_modules\npm\bin\node-gyp-bin\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node
"" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
blowfish.cc
bcrypt.cc
bcrypt_node.cc
**..\src\bcrypt.cc(232): warning C4267: '=' : conversion from 'size_t' to 'unsigned char', possible loss of d
ata [D:\WebstormProjects\authapp\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
..\src\bcrypt_node.cc(76): warning C4244: 'argument' : conversion from 'ssize_t' to 'unsigned char', possib
le loss of data [D:\WebstormProjects\authapp\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
..\src\bcrypt_node.cc(229): warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible los
s of data [D:\WebstormProjects\authapp\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
..\src\bcrypt_node.cc(230): warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible los
s of data [D:\WebstormProjects\authapp\node_modules\bcrypt\build\bcrypt_lib.vcxproj]**
win_delay_load_hook.c
Creating library D:\WebstormProjects\authapp\node_modules\bcrypt\build\Release\bcrypt_lib.lib and obje
ct D:\WebstormProjects\authapp\node_modules\bcrypt\build\Release\bcrypt_lib.exp
Generating code
Finished generating code
bcrypt_lib.vcxproj -> D:\WebstormProjects\authapp\node_modules\bcrypt\build\Release\bcrypt_lib.node
bcrypt@0.8.6 node_modules\bcrypt
├── bindings@1.2.1
└── nan@2.2.1
有人知道这里出了什么问题吗?
谢谢。
如果您使用 Windows,我建议您尽可能使用 Bcrypt-NodeJS 来避免这些错误。据我所知,您将获得大致相同的功能。
好的,所以这里所有的 brcypt 问题似乎都与 node-gyp 相关,但是在使用 bcrypt 一段时间后,我终于成功安装了它,node-gyp 似乎很高兴,但我仍然相当多的警告。它显然与 visual studio 有关,但我找不到任何关于这些的具体信息。
我在 windows 7 x64 ultimate 上并且有:
- visual studio 2012 年末
- visual studio 2013终极
- python 0.2.7.10
- windows 7 x64 sdk 所有更新
- Win64OpenSSL-1_0_lt
我收到以下警告:
D:\WebstormProjects\authapp>npm install --save bcrypt
npm WARN package.json authapp@1.0.0 No description
npm WARN package.json authapp@1.0.0 No README data
bcrypt@0.8.6 install D:\WebstormProjects\authapp\node_modules\bcrypt
node-gyp rebuild
D:\WebstormProjects\authapp\node_modules\bcrypt>if not defined npm_config_node_gyp (node "C:\Program Files\n
odejs\node_modules\npm\bin\node-gyp-bin\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node
"" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
blowfish.cc
bcrypt.cc
bcrypt_node.cc
**..\src\bcrypt.cc(232): warning C4267: '=' : conversion from 'size_t' to 'unsigned char', possible loss of d
ata [D:\WebstormProjects\authapp\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
..\src\bcrypt_node.cc(76): warning C4244: 'argument' : conversion from 'ssize_t' to 'unsigned char', possib
le loss of data [D:\WebstormProjects\authapp\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
..\src\bcrypt_node.cc(229): warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible los
s of data [D:\WebstormProjects\authapp\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
..\src\bcrypt_node.cc(230): warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible los
s of data [D:\WebstormProjects\authapp\node_modules\bcrypt\build\bcrypt_lib.vcxproj]**
win_delay_load_hook.c
Creating library D:\WebstormProjects\authapp\node_modules\bcrypt\build\Release\bcrypt_lib.lib and obje
ct D:\WebstormProjects\authapp\node_modules\bcrypt\build\Release\bcrypt_lib.exp
Generating code
Finished generating code
bcrypt_lib.vcxproj -> D:\WebstormProjects\authapp\node_modules\bcrypt\build\Release\bcrypt_lib.node
bcrypt@0.8.6 node_modules\bcrypt
├── bindings@1.2.1
└── nan@2.2.1
有人知道这里出了什么问题吗?
谢谢。
如果您使用 Windows,我建议您尽可能使用 Bcrypt-NodeJS 来避免这些错误。据我所知,您将获得大致相同的功能。