Npm install not working via Jenkins - cb() never called 2018 #21174
Comments
Downgraded NPM to v5.5.1, now it's working nice to know Npm leaves a bug for a few years and dont care |
Does 5.7.1 also work or just 5.5.1? |
Ive seen this issue all over the internet nowadays the only fix seems to be downgrading. I believe this bug is related to npm paths misconfigurations. Notes: |
This is the issue in your case, the error message at the end is very general. |
Thats also a generic response error, its not in my case specific, everything i have configured is default the error shouldnt show up at all, if you search this npm issue in this github it has been a known bug for a few years, its a fresh and clean jenkins installation and its using default NodeJs and Npm that comes with it, so it cant be my case specific thats for sure. |
This one comes from figgy-pudding unlike the others. |
Bro, i dont even know what figgy-pudding is, that camed with NPM itself by default, THIS IS NOT A SPECIFIC ERROR! so stop saying its figgy-pudding please, im trying to help, ur only messing peoples head, UR NOT HELPING! If you dont know what ur saying please dont comment about it, thats bad information, thank you |
Please see #21095 and other older issues, the error message is very general, the exact error is still |
Any exception does immediately return and break the further execution and so the callback |
Please change your title to something like |
Thats why im saying IT IS NOT IN MY CASE SPECIFIC! I DID NOT INSTALLED FIGGY-PUDDING I DONT KNOW WHAT THAT IS BUT IT IS NOT ONE OF MY DEPENDENCIES, IT CAMED WITH NPM INSIDE JENKINS FRESH INSTALL, SO IF YOU WISH TO KEEP SAYING THAT JUST INSTALL JENKINS AND NODEJS PLUGIN AND TRY IT FOR YOURSELF, nothing else to say if u cant help, thank you |
It is =) |
I just meant that the bug is probably in there, it is part of npm. |
Bro ur just retarded, i didnt ask for figgy-pudding to be installed, if it is there it shouldnt be, so its general because i didnt installed anything else and it should not happen, so its not a specific thing that i have done, every jenkins instalation with npm breaks the same way, so its not specific, if it was downgrading wouldnt help, get smart bro |
It is part of npm. I just noticed that there might be the issue / bug. The error message is still specific as the other issues with the same cb error do not point to figgy-pudding but other causes. I just try to get down to the rootcause and share the findings. |
Also it is good to know which release of npm introduced this bug / issue to pinpoint the problematic files (do some diffs and bisecting). I hope this is understandable. |
I'm opening this issue because:
What's going wrong?
THIS ONLY PRODUCES AN ERROR VIA JENKINS (I NEED A FIX)
npm install working on root folder but not on jenkins.
if i delete node_modules and package-lock.json and try to run npm install command manually in the project folder it works with no problem, but im trying to make it automatic through jenkins and it doesnt seem to be working if i try the same thing.
WHY? PLEASE HELP!
Jenkins Shell Script:
Jenkins Output:
The text was updated successfully, but these errors were encountered: