-
Notifications
You must be signed in to change notification settings - Fork 3k
yeoman generator and npm errors #7349
Comments
Well after much trial and error and git issue and stack overflow reads it seems that somewhere along the way I used:
Now initially this did not work even after restarting the terminal. I restarted my computer for some other reason and now all is dandy - no errors. Food for thought. I still do wonder if this is a bug. |
is a rare error message that crops up from time to time and comes from somewhere deep in the guts of the Node OpenSSL bindings. It's a failed assert, but it could really use some additional context saying what's going on. It sounds like you got past that, though, so I'm going to go ahead and close this as resolved. Good luck on your various Node / npm / web development adventures! |
It's useful to know that this affects OS X as well as Windows users. There could be something slightly thingy going on with the SSL code in 0.12.0, but that's out of my area of competency. @indutny, does this ring any bells with you? The only other time I've seen |
|
That's the thing – it comes without a stack trace, and it's not coming from npm itself. It appears to only be happening on 0.12.0, and I haven't gotten any reports from io.js users encountering this yet. |
See also #7306, #7332, #7555 -- at first I was dead sure this was a node core bug (only Node 0.12.0 and not 0.10.x or io.js users are seeing this crash), but now I'm not so sure, especially because I realized last night that I haven't seen an |
@indutny yay I have a stacktrace (this one courtesy @cibulka, to whom I am very thankful):
No, I have two stacktraces! (this one from @mattia-pink, thank you very much!)
Wasn't there an issue with something overwriting the HTTP parser's socket due to bad error-handling that was fixed in io.js a couple weeks ago? |
@othiym23 at least I'm not aware of this issue :) From which io.js version is this stack trace? It seems that the assertion has moved to different line in a recent io.js versions. |
@indutny Everyone seeing this issue is on Node.js 0.12.0. Sorry for not being clearer, and thanks for your eyes on this! I created an issue over there. |
Aaah, node.js 0.12, sorry! :) |
I'm just splitting my mind between two issues and got a bit lost :) |
I've noticed that several other people from related issues were using https://github.com/postcss/postcss. Personally, I am using:
When I removed |
@cibulka I think you are right, I have this problem trying to use the sage theme https://roots.io/sage/ and when I run gulp I have this error: but I have no idea how can i go ahead about this. |
One more thing, if anyone is able to reproduce this issue, could you please do this with |
@indutny - I can definitely reproduce the issue if I'm using |
@mattia-pink - Root's Sage is using |
@cibulka |
@othiym23: Thanks. :) I'm on it! |
@othiym23 , i tried NODE_DEBUG=net npm install and this is the result users-imac-3:sage user$ NODE_DEBUG=net npm install what can i do? |
I feel like an idiot - I can no longer reproduce the issue with Another problem I haven't before appeared though. I have no idea if it is related, but my Grunt task for https://github.com/SassDoc/sassdoc suddenly started to fail. Pasting the output with
|
@cibulka Don't feel like an idiot – I'm pretty sure this is a race condition, and by their nature, these are intermittent bugs. Your debug log was very helpful! @mattia-pink Try rerunning the install that failed (whatever command that was) with |
@mchung @cibulka @haxzorer and anyone who encountered this issue: Do you have some time to build this branch of my joyent/node's fork that contains a candidate for a fix: https://github.com/misterdjules/node/tree/fix-npm-assert and let us know if you can reproduce the bug? You will probably need to pass If building this branch and passing Thank you! |
@misterdjules I would love to help, but I can't reproduce the error anymore and most importantly, as I am a very basic Also, this issue is a master for #7555, so I am not a user of Yeoman. |
@cibulka Thank you for your response :) If you are able to reproduce this bug at some point in the future, please let me know and I'll provide you with better instructions for how to test the candidate fix I mentioned earlier. |
@misterdjules I'm experiencing the said bug. I'm a basic user aswell so some help to get the candidate fix in place would be great! |
@intelligence Are you able to reproduce it reliably? If so, what OS do you run node on? |
@misterdjules Yes, it happens every time I try to run npm install. I've tried multiple times just with |
@misterdjules sorry to ask, but what are trying to figure out by this? The fix surely applies to the problem mentioned in this issue. If testing anything - I'd suggest doing it in a different way. @intelligence may I ask you to give a try to the patch from the comment? |
@indutny I would if I could, hehe. Don't know how to build.. |
@intelligence it is easy! :) Let me help with this. git clone -b fix-npm-assert git://github.com/misterdjules/node --depth 1
cd node
./configure --prefix=/tmp/node-fix-test
make -j9
make install
export PATH="/tmp/node-fix-test/bin:$PATH" Now you could try |
@indutny I'm trying to make sure that misterdjules/node@e0059cd fixes this issue. What would you suggest doing differently? The reason why I offered to provide an installer/binary to @intelligence is that it's easier than requiring him/her to setup a development environment, which he/she might not be able to do for various reasons. |
@misterdjules I'd suggest just doing a release with this patch. It fixes some issue for sure, and very likely fixing this issue too (as I believe they are the same). |
@indutny There's no doubt the fix will make it into v0.12.2, as I indicated in this comment: nodejs/node-v0.x-archive#9348 (comment). Like I said, I just want to turn "very likely" into "100% sure". |
@indutny Thanks! I was able to get it working, but Error messages in terminal is:
Edit: Was able to get gulp to 3.8.11 with
|
Hello, Here's the error in full: npm ERR! Darwin 13.4.0 npm ERR! null == true It's worth noting that although the errors occur every time i run Here's the log content: https://gist.github.com/graywithanA/07df0b6f328b5eb384df Let me know if there is anything else you need that would be helpful. |
This problem will not be fixed in Node.js until 0.12.2 @graywithanA. If it's blocking you, you might want to take a look at using a recent version of io.js until Node.js 0.12.2 is released. |
Just a heads up, if you're using node-sass, it won't work with io.js 1.6.2. |
@intelligence @graywithanA I built a node OSX installer that includes node v0.12.0 + the candidate fix for this issue. If you had some time to give it a try and let us know if that fixes this issue for you, that would be great. The package is not signed, so you might get a warning when opening it. Thank you! |
@misterdjules Do I need to remove my current node installation before running your pkg or will this overwrite my existing installation? If I need to remove the current installation is the process outlined here sufficient? Also, if this doesn't fix the issue then downgrading to 0.10.x should correct? If there a preferred 0.10.x version? |
@graywithanA The installer will override any node binary in If it doesn't fix your issue, using node v0.10.x should fix it. Node v0.10.38 is the latest and recommended Node.js version. |
@misterdjules Your fix appears to have worked for me. Thank you. I was able to run I did receive an error indicating the Compass wasn't installed in Ruby when attempting to run
I don't know if yo-angular is supposed to install Compass if it isn't already present although I doubt it. That being said it would be nice if the generator-angular documentation indicated you need to install it yourself if you want to utilize the generator's SASS/Compass option. Either way, manually installing Compass after updating gem made the error go away and allowed me to successfully startup the grunt server. All seems to be working well now. |
@graywithanA Thank you for all your help in making sure that this issue is fixed, and thanks to @indutny for fixing the issue in the first place 👍 |
Works fine over here aswell! Just need to sudo stuff for now, but that'll do until I can install with nvm :) Thanks! |
@intelligence I'm using the second option suggested here to avoid the sudo issue and it works great. |
I had spaces in "name" field in package.json. Removing that fixed the problem. |
We're closing this issue as it has gone thirty days without activity. In our experience if an issue has gone thirty days without any activity then it's unlikely to be addressed. In the case of bug reports, often the underlying issue will be addressed but finding related issues is quite difficult and often incomplete. If this was a bug report and it is still relevant then we encourage you to open it again as a new issue. If this was a feature request then you should feel free to open it again, or even better open a PR. For more information about our new issue aging policies and why we've instituted them please see our blog post. |
New to this node game and I think this is where I need to be.
I have installed both an angular generator and webapp (2 diff projects, the webapp is a query tutorial) and get NPM errors. Focusing on the webapp, first errors:
more fetching and installing then this error:
And lastly when I run grunt serve this error:
FYI: I am pretty sure I installed node thru brew. Can't remember if I did globally (how can I tell? does it matter?). I keep reading about changing permissions on some files and that it is a bug. Funny thing is that angular generator would run "grunt serve" (still with some errors but it would run) BUT the webapp, you'd think it would run - doesn't.
Thx.
The text was updated successfully, but these errors were encountered: