D-Andreev / recommender-addon

A node addon for recommendations
MIT License
13 stars 2 forks source link

I alway have a problem with Node-Gyp when npm install #26

Open artcheeze opened 5 years ago

artcheeze commented 5 years ago

I'm using recommender v3.0.0 and i dev on Window with Working pretty good! but when i take it to production server (Debian) and npm install i alway get install error with node-gyp

image

image

I don't know how to solve this problem.

D-Andreev commented 5 years ago

Yes, I remember I had similar (or maybe the same) issue when running my tests on travis ci. There it's Debian as well. node-gyp requires some dependencies which are not installed by default on Debian.

Can you try installing the dependencies from before_install section here - https://github.com/D-Andreev/recommender-addon/blob/master/.travis.yml#L5 on your production env?

romayalon commented 4 years ago

Hey @artcheeze @D-Andreev , I'm trying to install the library on windows but having some issues with node-gyp. At the beginning it was an windows 8.1 SDK error and after installing it I get the following error: TRACKER : error TRK0005: Failed to locate: "CL.exe". is this repo is still maintained?

@artcheeze have you experienced these kind of errors on windows? or you just ran npm install recommender and it worked?

Thanks

artcheeze commented 4 years ago

Hey @artcheeze @D-Andreev , I'm trying to install the library on windows but having some issues with node-gyp. At the beginning it was an windows 8.1 SDK error and after installing it I get the following error: TRACKER : error TRK0005: Failed to locate: "CL.exe". is this repo is still maintained?

@artcheeze have you experienced these kind of errors on windows? or you just ran npm install recommender and it worked?

Thanks

My infrastructure team told me " i install build chain (or something that he cannot remember ) on Ubuntu Server before run npm install again and then it's work "

Now, i got contactless with him that's it everyting i known

thisalihassan commented 4 years ago

Hi @artcheeze @artcheeze
I am on windows and getting this error while installing recommender npm npm ERR! recommender@3.0.0 install: node-gyp rebuild I have looked everywhere for a solution but nothing seems to be working for me image

D-Andreev commented 4 years ago

@thisalihassan @romayalon

For Windows I would try installing https://www.npmjs.com/package/windows-build-tools first. What node versions are you running? This package was published when stable version of node was 7.0.0, so things could have changed.

thisalihassan commented 4 years ago

@D-Andreev I am using node 12.6.0. I have already installed windows build tools here's the log fle that you asked for log.txt

D-Andreev commented 4 years ago

@thisalihassan I just tried it on my Windows machine with node 12 and could not install it. By switching node to version 8.0.0 i was able to install the package. Let me know if this helps.

thisalihassan commented 4 years ago

@D-Andreev Thank you for the help, it works on node 8

onepiecehung commented 4 years ago

@thisalihassan I just tried it on my Windows machine with node 12 and could not install it. By switching node to version 8.0.0 i was able to install the package. Let me know if this helps.

@D-Andreev How can I use this package on node v12 LTS on windows?

image

thisalihassan commented 4 years ago

@onepiecehung You can't actually as, this package uses node 8.0.0 or less. There's nothing we could do to run on node 12

thisalihassan commented 4 years ago

@onepiecehung I can recommend you an alternative to this. I used "content-based-recommender" I hope this could help you

onepiecehung commented 4 years ago

@thisalihassan

oh, I can install and run it in node v10, on google shell and codesandbox.io , but it's still not working in my PC. lol

thisalihassan commented 4 years ago

what's the error? did you try https://www.npmjs.com/package/windows-build-tools installing this?

onepiecehung commented 4 years ago

what's the error? did you try https://www.npmjs.com/package/windows-build-tools installing this?

I have installed these tools before installing this npm