Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install bcrypt on windows #260

Closed
NazarioJL opened this issue Nov 20, 2014 · 9 comments
Closed

Cannot install bcrypt on windows #260

NazarioJL opened this issue Nov 20, 2014 · 9 comments

Comments

@NazarioJL
Copy link

@NazarioJL NazarioJL commented Nov 20, 2014

Running _npm install -g bcrypt_ fails on my Windows box.

Node version: v0.10.33 (32 bit)
Python version: 2.7.6 (32 bit)

I have VS2013 installed side by side with VS2012.

This is the failure:

%userprofile%\AppData\Roaming\npm\node_modules\bcrypt>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.
js" rebuild
Building the projects in this solution one at a time. To enable parallel build,
please add the "/m" switch.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.Cpp.Platform.targets(42,5): error MSB8020: The builds tools for Visual Studio 2010 (Platform Toolset = 'v100') cannot be found. To build using the v100 build tools, either click the Project menu or right-click the solution, and then select "Update VC++ Projects...". Install Visual Studio 2010 to build using the Visual Studio 2010 build tools. [%userprofile%\AppData\Roaming\npm\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `msbuild` 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.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:810: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 %userprofile%\AppData\Roaming\npm\node_modules\bcrypt
gyp ERR! node -v v0.10.33
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok

npm ERR! bcrypt@0.8.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bcrypt@0.8.0 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" "-g" "bcrypt"
npm ERR! cwd %userprofile%\Anaconda
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0
@springmeyer

This comment has been minimized.

Copy link

@springmeyer springmeyer commented Nov 20, 2014

Try passing '--msvs_version=2013'

@NazarioJL

This comment has been minimized.

Copy link
Author

@NazarioJL NazarioJL commented Nov 20, 2014

Tried that to no avail.

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.Cpp.Platform.t
argets(44,5): error MSB8020: The builds tools for v120 (Platform Toolset = 'v12
0') cannot be found. To build using the v120 build tools, either click the Proj
ect menu or right-click the solution, and then select "Update VC++ Projects..."
. Install v120 to build using the v120 build tools. [C:\Users\Jona\AppData\Roam
ing\npm\node_modules\bcrypt\build\bcrypt_lib.vcxproj]

Thanks for the suggestion!

@springmeyer

This comment has been minimized.

Copy link

@springmeyer springmeyer commented Nov 20, 2014

Okay. Next guess is that your PATH is not set up right to find visual studio 2013. Can you try running the build from the visual studio command prompt (which should but the right msbuild on your path)

@NazarioJL

This comment has been minimized.

Copy link
Author

@NazarioJL NazarioJL commented Nov 22, 2014

Hi @springmeyer, yes, I tried to take some of the obvious steps like those, but still not working. Switched to bcryptjs for now. Thanks!

@viztastic

This comment has been minimized.

Copy link

@viztastic viztastic commented Dec 3, 2014

Hi guys, I am experiencing the same issue, see error dump below:
image

@daric81

This comment has been minimized.

Copy link

@daric81 daric81 commented Dec 17, 2014

Why has this been closed? Was there a working fix for this problem?

@ncb000gt

This comment has been minimized.

Copy link
Member

@ncb000gt ncb000gt commented Dec 17, 2014

When I've seen this before Try passing '--msvs_version=2013' seems to work (or some variation of that) as @springmeyer suggested.

@daric81

This comment has been minimized.

Copy link

@daric81 daric81 commented Dec 18, 2014

Thanks @ncb000gt
Eventually figured out that my npm was outdated at v1.3.14. Downloading latest Node updates npm, so that and '--msvs_version=2013' were the required for my scenario.

@ncb000gt

This comment has been minimized.

Copy link
Member

@ncb000gt ncb000gt commented Dec 18, 2014

Glad to hear you got it worked out.
On Dec 18, 2014 7:25 AM, "daric81" notifications@github.com wrote:

Thanks @ncb000gt https://github.com/ncb000gt
Eventually figured out that my npm was outdated at v1.3.14. Downloading
latest Node updates npm, so that and '--msvs_version=2013' were the
required for my scenario.


Reply to this email directly or view it on GitHub
#260 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants
You can’t perform that action at this time.