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

Error at install #28

Closed
anthonykozak opened this issue Aug 23, 2015 · 6 comments
Closed

Error at install #28

anthonykozak opened this issue Aug 23, 2015 · 6 comments

Comments

@anthonykozak
Copy link

Hi,
I just installed the latest nodejs, and libcurl, and had this error :

"5869 error Windows_NT 6.1.7601
5870 error argv "D:\programmes\nodejs\node.exe" "D:\programmes\nodejs\node_modules\npm\bin\npm-cli.js" "install" "node-libcurl"
5871 error node v0.12.7
5872 error npm v2.11.3
5873 error code ELIFECYCLE
5874 error node-libcurl@0.5.1 install: node tools/retrieve-win-deps && node tools/generate-stubs && pangyp rebuild
5874 error Exit status 1
5875 error Failed at the node-libcurl@0.5.1 install script 'node tools/retrieve-win-deps && node tools/generate-stubs && pangyp rebuild'.
5875 error This is most likely a problem with the node-libcurl package,
5875 error not with npm itself."

The complete log is here http://jpst.it/Ba8O.
Thank you for your help !
Best regards,
Anthony

@JCMais
Copy link
Owner

JCMais commented Aug 23, 2015

do you have python and git installed?

@anthonykozak
Copy link
Author

yes
Python 2.7.10
git version 1.9.5.github.0
and visual studio 2013

@anthonykozak
Copy link
Author

here is the console log attached.
log

is there any other way to install node-libcurl ? like downloading a precompiled version and putting it in a specific path ?

@JCMais
Copy link
Owner

JCMais commented Aug 24, 2015

is there any other way to install node-libcurl ? like downloading a precompiled version and putting it in a specific path ?

Currently, there isn't.

I don't know exactly what is this problem that you are having, never saw it, but from what I could read, it's probably because you have a incorrect installation of Visual Studio.

Can you try reinstalling it? If possible try a more recent version, like Visual Studio 15

@anthonykozak
Copy link
Author

ok I installed Visual Studio 2015 with C#, and C++ modules and it finally worked.

I guess the libcurl module can't work on linux, as it needs visual studio ?..
Can I maybe paste the compiled node_modules/node-libcurl folder from windows to my nodejs linux folder ?

@JCMais
Copy link
Owner

JCMais commented Aug 25, 2015

Visual Studio is a Windows only dependency, since its the most supported C++ compiler for that platform.
You don't need Visual Studio on Linux, your Linux distribution should already have a C++ compiler called gcc. Just make sure it's at the version 4.8 or above.

Also, pasting is not going to work, since it was compiled on a different os/architecture.

@JCMais JCMais closed this as completed Aug 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants