nodejs/node-gyp

Win 8.1 build fail

Closed this issue · 6 comments

Hello! Can't understand in what problem.
I have:
Python 2.7.6
OpenSSL 1.0.1f(64)
Visual C++ 2008 Redistributables (x64)
Microsoft Visual Studio C++ 2012 for Windows Desktop Express

D:_PROJS\pastvu\app\node_modules\bcrypt\build\bcrypt_lib.vcxproj(47,46): error MSB4025: Could not load file project. An invalid character for the specified encoding., Line 47, position 46.
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:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "node" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd D:_PROJS\pastvu\app\node_modules\bcrypt
gyp ERR! node -v v0.10.26
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
npm ERR! bcrypt@0.7.7 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bcrypt@0.7.7 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.2.9200
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 D:_PROJS\pastvu\app
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! D:_PROJS\pastvu\app\npm-debug.log
npm ERR! not ok code 0

@klimashkin, Could you take a look at line 47 position 46 of the file D:_PROJS\pastvu\app\node_modules\bcrypt\build\bcrypt_lib.vcxproj and see if it clues you in to what may be going wrong?

If nothing pokes out at you, could you please attach lines 45-49 of that file to this issue?

Thanks,

  • jcb

How can I catch this file (bcrypt_lib.vcxproj)? It's removing immediately if build failed)

I download bcrypt manually and put it to project node_modules folder.
Then I made node-gyp configure in bcrypt folder and got build/bcrypt_lib.vcxproj file

Then i saw Windows 8 set user dir in russian

<AdditionalIncludeDirectories>C:\Users\Павел\.node-gyp\0.10.26\src;C:\Users\Павел\.node-gyp\0.10.26\deps\uv\include;C:\Users\Павел\.node-gyp\0.10.26\deps\v8\include;C:\OpenSSL-Win64\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>

And file coding was ANSI, so I watch it in utf-8, and user name became unreadable.
Than I transform file to UTF-8 and build finished ok!

Can node-gyp configure generate files in UTF-8 directly?

Sounds like this is a duplicate of #297, do you concur?

Yeah, it's the same

Sogl commented

Same problem.
Need a fix.