This shit be broken, dog
PS C:\Users\Holmes\Programming\Poopoo> npm install bcrypt
npm WARN package.json [email protected] No README.md file found!
npm http GET https://registry.npmjs.org/bcrypt
npm http 304 https://registry.npmjs.org/bcrypt
npm http GET https://registry.npmjs.org/bindings/1.0.0
npm http 304 https://registry.npmjs.org/bindings/1.0.0
> [email protected] install C:\Users\Holmes\Programming\Poopoo\node_modules\bcrypt
> node-gyp rebuild
C:\Users\Holmes\Programming\Poopoo\node_modules\bcrypt>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bi
n\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
blowfish.cc
bcrypt.cc
bcrypt_node.cc
..\src\bcrypt.cc(232): warning C4267: '=' : conversion from 'size_t' to 'unsigned char', possible loss of data [C:\User
s\Holmes\Programming\Poopoo\node_modules\bcrypt\build\bcrypt_lib.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 [C:\Users\Holmes\Programming\Poopoo\node_modules\bcrypt\build\b
crypt_lib.vcxproj]
c:\users\holmes\.node-gyp\0.8.8\deps\openssl\openssl\include\openssl\../../e_os2.h(56): fatal error C1083: Cannot open
include file: 'openssl/opensslconf.h': No such file or directory [C:\Users\Holmes\Programming\Poopoo\node_modules\bc
rypt\build\bcrypt_lib.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 (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:2
19:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:91:17)
gyp ERR! stack at Process._handle.onexit (child_process.js:674:10)
gyp ERR! System Windows_NT 6.0.6002
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuil
d"
gyp ERR! cwd C:\Users\Holmes\Programming\Poopoo\node_modules\bcrypt
gyp ERR! node -v v0.8.8
gyp ERR! node-gyp -v v0.6.7
gyp ERR! not ok
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! `cmd "/c" "node-gyp rebuild"` failed with 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the bcrypt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls bcrypt
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.0.6002
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js"
"install" "bcrypt"
npm ERR! cwd C:\Users\Holmes\Programming\Poopoo
npm ERR! node -v v0.8.8
npm ERR! npm -v 1.1.59
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\Holmes\Programming\Poopoo\npm-debug.log
npm ERR! not ok code 0
It's late, and I don't know what else to say other than here's the error message, and I don't know how to install this.. I installed the OpenSSL and Redistributables like it said, but it still no work..why you no work?
Where did you install openssl to?
c:\users\holmes\.node-gyp\0.8.8\deps\openssl\openssl\include\openssl\../../e_os2.h(56): fatal error C1083: Cannot open
include file: 'openssl/opensslconf.h': No such file or directory [C:\Users\Holmes\Programming\Poopoo\node_modules\bc
rypt\build\bcrypt_lib.vcxproj]
C:/OpenSSL-Win32
This may be a bug actually. I just committed 9138f34f7d4cd4b9350ed08c966ec06ed72eb5ff which I believe should help.
@samholmes If you want to try installing from the master branch then it'll include this patch:
$ npm install git://github.com/ncb000gt/node.bcrypt.js.git
@samholmes Does installing form the master branch like described above work now?
PS C:\Users\Holmes\Programming\Poopoo> npm install git://github.com/ncb000gt/node.bcrypt.js.git
npm WARN package.json [email protected] No README.md file found!
npm ERR! git clone git://github.com/ncb000gt/node.bcrypt.js.git CreateProcessW: The system cannot find the file specifie
d.
npm ERR! Error: `git "clone" "git://github.com/ncb000gt/node.bcrypt.js.git" "C:\\Users\\Holmes\\AppData\\Local\\Temp\\np
m-8196\\1346454876401-0.7064907008316368"` failed with 127
npm ERR! at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\exec.js:56:20)
npm ERR! at ChildProcess.EventEmitter.emit (events.js:91:17)
npm ERR! at Process._handle.onexit (child_process.js:674:10)
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <[email protected]>
npm ERR! System Windows_NT 6.0.6002
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js"
"install" "git://github.com/ncb000gt/node.bcrypt.js.git"
npm ERR! cwd C:\Users\Holmes\Programming\Poopoo
npm ERR! node -v v0.8.8
npm ERR! npm -v 1.1.59
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\Holmes\Programming\Poopoo\npm-debug.log
npm ERR! not ok code 0
Oh, you don't have git installed :(
Try this instead:
$ npm install https://github.com/ncb000gt/node.bcrypt.js/tarball/master
PS C:\Users\Holmes\Programming\Poopoo> npm install https://github.com/ncb000gt/node.bcrypt.js/tarball/master
npm WARN package.json [email protected] No README.md file found!
npm http GET https://github.com/ncb000gt/node.bcrypt.js/tarball/master
npm http 200 https://github.com/ncb000gt/node.bcrypt.js/tarball/master
npm http GET https://registry.npmjs.org/bindings/1.0.0
npm http 304 https://registry.npmjs.org/bindings/1.0.0
> [email protected] install C:\Users\Holmes\Programming\Poopoo\node_modules\bcrypt
> node-gyp rebuild
C:\Users\Holmes\Programming\Poopoo\node_modules\bcrypt>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bi
n\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
blowfish.cc
bcrypt.cc
..\src\bcrypt.cc(232): warning C4267: '=' : conversion from 'size_t' to 'unsigned char', possible loss of data [C:\User
s\Holmes\Programming\Poopoo\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
bcrypt_node.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 [C:\Users\Holmes\Programming\Poopoo\node_modules\bcrypt\build\b
crypt_lib.vcxproj]
..\src\bcrypt_node.cc(38): fatal error C1083: Cannot open include file: 'openssl/rand.h': No such file or directory [C:
\Users\Holmes\Programming\Poopoo\node_modules\bcrypt\build\bcrypt_lib.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 (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:2
19:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:91:17)
gyp ERR! stack at Process._handle.onexit (child_process.js:674:10)
gyp ERR! System Windows_NT 6.0.6002
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuil
d"
gyp ERR! cwd C:\Users\Holmes\Programming\Poopoo\node_modules\bcrypt
gyp ERR! node -v v0.8.8
gyp ERR! node-gyp -v v0.6.7
gyp ERR! not ok
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! `cmd "/c" "node-gyp rebuild"` failed with 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the bcrypt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls bcrypt
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.0.6002
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js"
"install" "https://github.com/ncb000gt/node.bcrypt.js/tarball/master"
npm ERR! cwd C:\Users\Holmes\Programming\Poopoo
npm ERR! node -v v0.8.8
npm ERR! npm -v 1.1.59
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\Holmes\Programming\Poopoo\npm-debug.log
npm ERR! not ok code 0
@samholmes Can you try again with --verbose attached to the command? I'm not really sure what's going on but it's possible your node-gyp header files are incomplete somehow. We'll figure it out.
PS C:\Users\Holmes\Programming\Poopoo> npm install https://github.com/ncb000gt/node.bcrypt.js/tarball/master --verbos
e
npm info it worked if it ends with ok
npm verb cli [ 'C:\\Program Files\\nodejs\\\\node.exe',
npm verb cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
npm verb cli 'install',
npm verb cli 'https://github.com/ncb000gt/node.bcrypt.js/tarball/master',
npm verb cli '--verbose' ]
npm info using [email protected]
npm info using [email protected]
npm verb node symlink C:\Program Files\nodejs\\node.exe
npm verb read json C:\Users\Holmes\Programming\Poopoo\package.json
npm verb read json C:\Users\Holmes\Programming\Poopoo\node_modules\browserify\package.json
npm verb read json C:\Users\Holmes\Programming\Poopoo\node_modules\cookie\package.json
npm verb read json C:\Users\Holmes\Programming\Poopoo\node_modules\ejs\package.json
npm verb read json C:\Users\Holmes\Programming\Poopoo\node_modules\email\package.json
npm verb read json C:\Users\Holmes\Programming\Poopoo\node_modules\email-templates\package.json
npm verb read json C:\Users\Holmes\Programming\Poopoo\node_modules\express\package.json
npm verb read json C:\Users\Holmes\Programming\Poopoo\node_modules\gm\package.json
npm verb read json C:\Users\Holmes\Programming\Poopoo\node_modules\kava\package.json
npm verb read json C:\Users\Holmes\Programming\Poopoo\node_modules\lace\package.json
npm verb read json C:\Users\Holmes\Programming\Poopoo\node_modules\mailer\package.json
npm verb read json C:\Users\Holmes\Programming\Poopoo\node_modules\mkdirp\package.json
npm verb read json C:\Users\Holmes\Programming\Poopoo\node_modules\moment\package.json
npm verb read json C:\Users\Holmes\Programming\Poopoo\node_modules\mysql\package.json
npm verb read json C:\Users\Holmes\Programming\Poopoo\node_modules\nodemailer\package.json
npm verb read json C:\Users\Holmes\Programming\Poopoo\node_modules\page\package.json
npm verb read json C:\Users\Holmes\Programming\Poopoo\node_modules\socket.io\package.json
npm verb read json C:\Users\Holmes\Programming\Poopoo\node_modules\yarn\package.json
npm WARN package.json [email protected] No README.md file found!
npm verb read json C:\Users\Holmes\Programming\Poopoo\package.json
npm verb cache add [ 'https://github.com/ncb000gt/node.bcrypt.js/tarball/master',
npm verb cache add null ]
npm verb parsed url { protocol: 'https:',
npm verb parsed url slashes: true,
npm verb parsed url host: 'github.com',
npm verb parsed url hostname: 'github.com',
npm verb parsed url href: 'https://github.com/ncb000gt/node.bcrypt.js/tarball/master',
npm verb parsed url pathname: '/ncb000gt/node.bcrypt.js/tarball/master',
npm verb parsed url path: '/ncb000gt/node.bcrypt.js/tarball/master' }
npm verb lock https://github.com/ncb000gt/node.bcrypt.js/tarball/master C:\Users\Holmes\AppData\Roaming\npm-cache\d7d264
5f-gt-node-bcrypt-js-tarball-master.lock
npm verb addRemoteTarball [ 'https://github.com/ncb000gt/node.bcrypt.js/tarball/master',
npm verb addRemoteTarball null ]
npm info retry fetch attempt 1 at 00:13:54
npm verb fetch to= C:\Users\Holmes\AppData\Local\Temp\npm-9564\1346483634440-0.5563116923440248\tmp.tgz
npm http GET https://github.com/ncb000gt/node.bcrypt.js/tarball/master
npm http 200 https://github.com/ncb000gt/node.bcrypt.js/tarball/master
npm verb tar unpack C:\Users\Holmes\AppData\Local\Temp\npm-9564\1346483634440-0.5563116923440248\tmp.tgz
npm verb lock C:\Users\Holmes\AppData\Local\Temp\npm-9564\1346483634440-0.5563116923440248\package C:\Users\Holmes\AppDa
ta\Roaming\npm-cache\2ff9d81b-34440-0-5563116923440248-package.lock
npm verb read json C:\Users\Holmes\AppData\Local\Temp\npm-9564\1346483634440-0.5563116923440248\package\package.json
npm verb from cache C:\Users\Holmes\AppData\Local\Temp\npm-9564\1346483634440-0.5563116923440248\package\package.json
npm verb tar pack [ 'C:\\Users\\Holmes\\AppData\\Roaming\\npm-cache\\bcrypt\\0.7.1\\package.tgz',
npm verb tar pack 'C:\\Users\\Holmes\\AppData\\Local\\Temp\\npm-9564\\1346483634440-0.5563116923440248\\package' ]
npm verb tarball C:\Users\Holmes\AppData\Roaming\npm-cache\bcrypt\0.7.1\package.tgz
npm verb folder C:\Users\Holmes\AppData\Local\Temp\npm-9564\1346483634440-0.5563116923440248\package
npm verb lock C:\Users\Holmes\AppData\Roaming\npm-cache\bcrypt\0.7.1\package.tgz C:\Users\Holmes\AppData\Roaming\npm-cac
he\8613ec9a-m-cache-bcrypt-0-7-1-package-tgz.lock
npm verb lock C:\Users\Holmes\AppData\Roaming\npm-cache\bcrypt\0.7.1\package C:\Users\Holmes\AppData\Roaming\npm-cache\1
a9f80db-g-npm-cache-bcrypt-0-7-1-package.lock
npm verb tar unpack C:\Users\Holmes\AppData\Roaming\npm-cache\bcrypt\0.7.1\package.tgz
npm verb lock C:\Users\Holmes\AppData\Roaming\npm-cache\bcrypt\0.7.1\package C:\Users\Holmes\AppData\Roaming\npm-cache\1
a9f80db-g-npm-cache-bcrypt-0-7-1-package.lock
npm verb read json C:\Users\Holmes\AppData\Roaming\npm-cache\bcrypt\0.7.1\package\package.json
npm info shasum 9e65413eb174aaf2d52e673a7eec1ddaa979d90c
npm info shasum C:\Users\Holmes\AppData\Roaming\npm-cache\bcrypt\0.7.1\package.tgz
npm verb from cache C:\Users\Holmes\AppData\Roaming\npm-cache\bcrypt\0.7.1\package\package.json
npm verb chmod C:\Users\Holmes\AppData\Roaming\npm-cache\bcrypt\0.7.1\package.tgz 666
npm info install [email protected] into C:\Users\Holmes\Programming\Poopoo
npm info installOne [email protected]
npm verb from cache C:\Users\Holmes\AppData\Roaming\npm-cache\bcrypt\0.7.1\package\package.json
npm info C:\Users\Holmes\Programming\Poopoo\node_modules\bcrypt unbuild
npm verb read json C:\Users\Holmes\Programming\Poopoo\node_modules\bcrypt\package.json
npm verb tar unpack C:\Users\Holmes\AppData\Roaming\npm-cache\bcrypt\0.7.1\package.tgz
npm verb lock C:\Users\Holmes\Programming\Poopoo\node_modules\bcrypt C:\Users\Holmes\AppData\Roaming\npm-cache\998689
05-ng-Poopoo-node-modules-bcrypt.lock
npm verb read json C:\Users\Holmes\Programming\Poopoo\node_modules\bcrypt\package.json
npm info preinstall [email protected]
npm verb from cache C:\Users\Holmes\Programming\Poopoo\node_modules\bcrypt\package.json
npm verb readDependencies using package.json deps
npm verb from cache C:\Users\Holmes\Programming\Poopoo\node_modules\bcrypt\package.json
npm verb readDependencies using package.json deps
npm verb cache add [ '[email protected]', null ]
npm verb parsed url { pathname: '[email protected]',
npm verb parsed url path: '[email protected]',
npm verb parsed url href: '[email protected]' }
npm verb parsed url { pathname: '1.0.0', path: '1.0.0', href: '1.0.0' }
npm verb addNamed [ 'bindings', '1.0.0' ]
npm verb addNamed [ '1.0.0', '1.0.0' ]
npm verb lock [email protected] C:\Users\Holmes\AppData\Roaming\npm-cache\f01e5454-bindings-1-0-0.lock
npm verb url raw bindings/1.0.0
npm verb url resolving [ 'https://registry.npmjs.org/', './bindings/1.0.0' ]
npm verb url resolved https://registry.npmjs.org/bindings/1.0.0
npm info retry registry request attempt 1 at 00:13:57
npm verb etag "1VQ5Q5SYHAX5F95YS1R6ARS24"
npm http GET https://registry.npmjs.org/bindings/1.0.0
npm http 304 https://registry.npmjs.org/bindings/1.0.0
npm verb etag bindings/1.0.0 from cache
npm verb read json C:\Users\Holmes\AppData\Roaming\npm-cache\bindings\1.0.0\package\package.json
npm info install [email protected] into C:\Users\Holmes\Programming\Poopoo\node_modules\bcrypt
npm info installOne [email protected]
npm verb from cache C:\Users\Holmes\AppData\Roaming\npm-cache\bindings\1.0.0\package\package.json
npm info C:\Users\Holmes\Programming\Poopoo\node_modules\bcrypt\node_modules\bindings unbuild
npm verb read json C:\Users\Holmes\Programming\Poopoo\node_modules\bcrypt\node_modules\bindings\package.json
npm verb tar unpack C:\Users\Holmes\AppData\Roaming\npm-cache\bindings\1.0.0\package.tgz
npm verb lock C:\Users\Holmes\Programming\Poopoo\node_modules\bcrypt\node_modules\bindings C:\Users\Holmes\AppData\Ro
aming\npm-cache\82cbe800-les-bcrypt-node-modules-bindings.lock
npm verb read json C:\Users\Holmes\Programming\Poopoo\node_modules\bcrypt\node_modules\bindings\package.json
npm info preinstall [email protected]
npm verb from cache C:\Users\Holmes\Programming\Poopoo\node_modules\bcrypt\node_modules\bindings\package.json
npm verb readDependencies using package.json deps
npm verb from cache C:\Users\Holmes\Programming\Poopoo\node_modules\bcrypt\node_modules\bindings\package.json
npm verb readDependencies using package.json deps
npm verb about to build C:\Users\Holmes\Programming\Poopoo\node_modules\bcrypt\node_modules\bindings
npm info build C:\Users\Holmes\Programming\Poopoo\node_modules\bcrypt\node_modules\bindings
npm verb from cache C:\Users\Holmes\Programming\Poopoo\node_modules\bcrypt\node_modules\bindings\package.json
npm verb linkStuff [ false,
npm verb linkStuff false,
npm verb linkStuff false,
npm verb linkStuff 'C:\\Users\\Holmes\\Programming\\Poopoo\\node_modules\\bcrypt\\node_modules' ]
npm info linkStuff [email protected]
npm verb linkBins [email protected]
npm verb linkMans [email protected]
npm verb rebuildBundles [email protected]
npm info install [email protected]
npm info postinstall [email protected]
npm verb about to build C:\Users\Holmes\Programming\Poopoo\node_modules\bcrypt
npm info build C:\Users\Holmes\Programming\Poopoo\node_modules\bcrypt
npm verb from cache C:\Users\Holmes\Programming\Poopoo\node_modules\bcrypt\package.json
npm verb linkStuff [ false,
npm verb linkStuff false,
npm verb linkStuff false,
npm verb linkStuff 'C:\\Users\\Holmes\\Programming\\Poopoo\\node_modules' ]
npm info linkStuff [email protected]
npm verb linkBins [email protected]
npm verb linkMans [email protected]
npm verb rebuildBundles [email protected]
npm verb rebuildBundles [ 'bindings' ]
npm info install [email protected]
npm verb unsafe-perm in lifecycle true
> [email protected] install C:\Users\Holmes\Programming\Poopoo\node_modules\bcrypt
> node-gyp rebuild
C:\Users\Holmes\Programming\Poopoo\node_modules\bcrypt>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bi
n\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
gyp info it worked if it ends with ok
gyp verb cli [ 'node',
gyp verb cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js',
gyp verb cli 'rebuild' ]
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` failed for `%s` Error: not found: python
gyp verb `which` failed for `%s` at F (C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:43:28)
gyp verb `which` failed for `%s` at E (C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:46:29)
gyp verb `which` failed for `%s` at C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:57:16
gyp verb `which` failed for `%s` at Object.oncomplete (fs.js:297:15)
gyp verb `which` failed for `%s` python [Error: not found: python]
gyp verb could not find "python". guessing location
gyp verb ensuring that file exists: C:\Python27\python.exe
gyp verb check python version `C:\Python27\python.exe --version` returned: "Python 2.7.2\r\n"
gyp verb check python version using version "2.7.2" to check
gyp verb get node dir no --target version specified, falling back to host node version: v0.8.8
gyp verb command install [ 'v0.8.8' ]
gyp verb install input version string "v0.8.8"
gyp verb installing legacy version? false
gyp verb install installing version: 0.8.8
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 0.8.8
gyp verb build dir attempting to create "build" dir: C:\Users\Holmes\Programming\Poopoo\node_modules\bcrypt\build
gyp verb build dir "build" dir needed to be created? C:\Users\Holmes\Programming\Poopoo\node_modules\bcrypt\build
gyp verb config.gypi creating config file
gyp verb config.gypi writing out config file: C:\Users\Holmes\Programming\Poopoo\node_modules\bcrypt\build\config.gyp
i
gyp verb gyp gyp format was not specified; forcing "msvs"
gyp info spawn C:\Python27\python.exe
gyp info spawn args [ 'C:\\Users\\Holmes\\.node-gyp\\0.8.8\\tools\\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=2010',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\Holmes\\Programming\\Poopoo\\node_modules\\bcrypt\\build\\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\Holmes\\.node-gyp\\0.8.8\\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\\Users\\Holmes\\.node-gyp\\0.8.8',
gyp info spawn args '-Dmodule_root_dir=C:\\Users\\Holmes\\Programming\\Poopoo\\node_modules\\bcrypt',
gyp info spawn args '--depth=.',
gyp info spawn args '--generator-output',
gyp info spawn args 'C:\\Users\\Holmes\\Programming\\Poopoo\\node_modules\\bcrypt\\build',
gyp info spawn args '-Goutput_dir=.' ]
gyp verb command build []
gyp verb build type Release
gyp verb architecture x64
gyp verb node dev dir C:\Users\Holmes\.node-gyp\0.8.8
gyp verb found first Solution file build/binding.sln
gyp verb could not find "msbuild.exe". guessing location
gyp verb "Release" dir needed to be created? null
gyp verb copying "node.lib" for x64 C:\Users\Holmes\.node-gyp\0.8.8\Release\node.lib
gyp info spawn C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
gyp info spawn args [ 'build/binding.sln',
gyp info spawn args '/nologo',
gyp info spawn args '/property:TargetExt=.node',
gyp info spawn args '/p:Configuration=Release;Platform=x64' ]
Build started 9/1/2012 12:14:05 AM.
Project "C:\Users\Holmes\Programming\Poopoo\node_modules\bcrypt\build\binding.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
Building solution configuration "Release|x64".
Project "C:\Users\Holmes\Programming\Poopoo\node_modules\bcrypt\build\binding.sln" (1) is building "C:\Users\Holmes\
Programming\Poopoo\node_modules\bcrypt\build\bcrypt_lib.vcxproj" (2) on node 1 (default targets).
PrepareForBuild:
Creating directory "Release\obj\bcrypt_lib\".
InitializeBuildStatus:
Creating "Release\obj\bcrypt_lib\bcrypt_lib.unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\x86_amd64\CL.exe /c /I"C:\Users\Holmes\.node-gyp\0.8.8\src
" /I"C:\Users\Holmes\.node-gyp\0.8.8\deps\uv\include" /I"C:\Users\Holmes\.node-gyp\0.8.8\deps\v8\include" /I"C:\OpenS
SL-Win32\include" /Zi /nologo /W3 /WX- /Ox /Ob2 /Oi /Ot /Oy /GL /D WIN32 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_
NO_DEPRECATE /D BUILDING_V8_SHARED=1 /D BUILDING_UV_SHARED=1 /D "uint=unsigned int" /D "PLATFORM=\"win32\"" /D _WINDL
L /GF /Gm- /MT /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /GR- /Fo"Release\obj\bcrypt_lib\\" /Fd"Release\obj\bcrypt
_lib\vcWindows7.1SDK.pdb" /Gd /TP /wd4251 /errorReport:queue ..\src\blowfish.cc ..\src\bcrypt.cc ..\src\bcrypt_node.c
c /MP
blowfish.cc
bcrypt.cc
bcrypt_node.cc
..\src\bcrypt.cc(232): warning C4267: '=' : conversion from 'size_t' to 'unsigned char', possible loss of data [C:\User
s\Holmes\Programming\Poopoo\node_modules\bcrypt\build\bcrypt_lib.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 [C:\Users\Holmes\Programming\Poopoo\node_modules\bcrypt\build\b
crypt_lib.vcxproj]
..\src\bcrypt_node.cc(38): fatal error C1083: Cannot open include file: 'openssl/rand.h': No such file or directory [C:
\Users\Holmes\Programming\Poopoo\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
Done Building Project "C:\Users\Holmes\Programming\Poopoo\node_modules\bcrypt\build\bcrypt_lib.vcxproj" (default tar
gets) -- FAILED.
Done Building Project "C:\Users\Holmes\Programming\Poopoo\node_modules\bcrypt\build\binding.sln" (default targets) -
- FAILED.
Build FAILED.
"C:\Users\Holmes\Programming\Poopoo\node_modules\bcrypt\build\binding.sln" (default target) (1) ->
"C:\Users\Holmes\Programming\Poopoo\node_modules\bcrypt\build\bcrypt_lib.vcxproj" (default target) (2) ->
(ClCompile target) ->
..\src\bcrypt.cc(232): warning C4267: '=' : conversion from 'size_t' to 'unsigned char', possible loss of data [C:\Us
ers\Holmes\Programming\Poopoo\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xlocale(323): warning C4530: C++ exception handler use
d, but unwind semantics are not enabled. Specify /EHsc [C:\Users\Holmes\Programming\Poopoo\node_modules\bcrypt\build
\bcrypt_lib.vcxproj]
"C:\Users\Holmes\Programming\Poopoo\node_modules\bcrypt\build\binding.sln" (default target) (1) ->
"C:\Users\Holmes\Programming\Poopoo\node_modules\bcrypt\build\bcrypt_lib.vcxproj" (default target) (2) ->
(ClCompile target) ->
..\src\bcrypt_node.cc(38): fatal error C1083: Cannot open include file: 'openssl/rand.h': No such file or directory [
C:\Users\Holmes\Programming\Poopoo\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
2 Warning(s)
1 Error(s)
Time Elapsed 00:00:10.29
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 (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:2
19:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:91:17)
gyp ERR! stack at Process._handle.onexit (child_process.js:674:10)
gyp ERR! System Windows_NT 6.0.6002
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuil
d"
gyp ERR! cwd C:\Users\Holmes\Programming\Poopoo\node_modules\bcrypt
gyp ERR! node -v v0.8.8
gyp ERR! node-gyp -v v0.6.7
gyp ERR! not ok
npm info [email protected] Failed to exec install script
npm info C:\Users\Holmes\Programming\Poopoo\node_modules\bcrypt unbuild
npm verb from cache C:\Users\Holmes\Programming\Poopoo\node_modules\bcrypt\package.json
npm info preuninstall [email protected]
npm info uninstall [email protected]
npm verb true,C:\Users\Holmes\Programming\Poopoo\node_modules,C:\Users\Holmes\Programming\Poopoo\node_modules unbu
ild [email protected]
npm info postuninstall [email protected]
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! `cmd "/c" "node-gyp rebuild"` failed with 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the bcrypt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls bcrypt
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.0.6002
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js"
"install" "https://github.com/ncb000gt/node.bcrypt.js/tarball/master" "--verbose"
npm ERR! cwd C:\Users\Holmes\Programming\Poopoo
npm ERR! node -v v0.8.8
npm ERR! npm -v 1.1.59
npm ERR! code ELIFECYCLE
npm verb exit [ 1, true ]
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\Holmes\Programming\Poopoo\npm-debug.log
npm ERR! not ok code 0
Does the file C:\OpenSSL-Win32\include\openssl\rand.h exist?
The folder, include, doesn't exist. :|
Well that sounds like a red flag to me :p Try re-installing openssl to there again or something? You need those header files to be there.
@samholmes @TooTallNate pushed some changes for 64bit openssl that might help (I think I saw you're using 64bit windows?). Try uninstalling the existing 32bit openssl and install the 64bit version (to its default location) and see if that helps. Thanks.
I also just published this as a new version to npm so you should be able to try it from there.
@samholmes I think you need to install the "regular" version not the "light" version.
@TooTallNate I just made a note of that in the readme.
Should I run npm install bcrypt or the other command with the github repo?
@samholmes Just npm install bcrypt should do it at this point. @ncb000gt published a new version earlier today.
It's working now. Thanks for all the support, guys, and for putting up with my stupidity. xP
Glad its working. Let us know if you run across any other issues (afaik none of us committers use windows so we're very unlikely to stumble across windows bugs ;D).
just ran into the same problem. saw that my shrinkwrap had 0.7.1 of bcrypt tagged. changed it to 0.7.2 and now have it working on a pure 64 bit windows server build.
thanks