-
Notifications
You must be signed in to change notification settings - Fork 3k
npm hangs on Node 6.4.0 #13782
Comments
which OS? whats does your package.json look like? this is likely due to your setup. |
Happens an Arch Linux with all packages up to date. Install works fine if I install each package separately but not when installing all of them. Rolled back to version 6.3.1 and now install works fine. |
I can confirm that. I am also having this problem on archlinux but with node 6.4 |
Today I tried doing another update, this time got Node 6.5.0. Output:
Version output:
EDIT: Also tried clearing NPM cache but it made no difference. |
I'm also experiencing the same issue, same distro, same versions.
Npm sits there pegging a core to 100%. I've tried leaving it overnight to no avail.
|
Ok. So far we have confirmation on Arch. Someone should confirm this on another OS/distro. |
Can you try attaching a debugger to the process when it’s stuck? |
Same issue, also on Arch.
My package.json: https://github.com/Torwori/ts-mobx-react-starter-kit/blob/update-deps/package.json The "hanging":
|
@Torwori That looks like something different… your process doesn’t hang with 100 % CPU, does it? Your problem looks like nodejs/node#8310 (where more information is certainly likely to be useful, too) … I assume that only occurs since Node v6.5.0? |
@addaleax It uses 100%. I left it running for an hour and then had to SIGKILL it. I'll try Node v6.4.0 and let you know. |
@Torwori oh, that seems like useful information on why the process hangs then… would be really good to know if the same stack trace appears with v6.4.0. Also, do you happen to have anything installed that handles segmentation faults? Can you run your I really appreciate your help with digging into this! |
@addaleax Just tried
Not that I know of.
|
So… repeated A more or less brute-force way to inspect the situation would be looking at the disassembly in one of the stack frames above the signal handler (the
which shows what exactly is being executed after each |
@addaleax Output:
|
@addaleax Since I reported it with title "6.4.0", yes. The issue started in Node 6.4.0. |
@NullDivision Sorry, didn’t mean to sound like I doubted you. My question was directed at @Torwori … his stacktrace points to a possible failure in V8, which is extensively updated in Node v6.5.0, so that seemed a natural question to ask. The 100 % CPU usage in your case might very well have the same cause – Either of you… this looks like something is calling into libuv’s |
@addaleax I don't have that package installed globally. |
Okay … puh. One last thing I can suggest to try before I go to bed: btw, I’ve set up an Arch Linux VM and installed the current versions of node & npm, but couldn’t reproduce anything so far, unfortunately… |
@NullDivision Had same issue after upgrading to 6.5, rolling back to 6.4 solves the issue. |
|
That looks, unfortunately, pretty normal … I’m headed for sleep now, but thanks everyone for their time so far. Maybe I’ll be able to reproduce some of this at some of these problems, and maybe someone else comes up with ideas… If you think you have a way to make this problem occur reliably on other Arch machines, let me know. |
It might be related to the project itself. I've set up an Arch Linux VM on DigitalOcean with a pretty small project (empty except package.json) that exhibits the issue. I'll attempt to Direct Message you on Twitter with login details. Otherwise, here's a .zip containing a package.json where doing 'npm i' causes the problem. |
Ok, so, thanks to @leafi’s server access, I know at least now why Ping @bcoe … why does |
I’m pretty sure this is an actual V8 bug, see nodejs/node#8310 (comment). For now, everyone here should be good by waiting a couple of hours or so until the official Node.js binaries are out, or using Node 6.4.0 (which seems to only reduce the frequency of the bug, not eliminate it), or compiling 6.5.0 from the sources using gcc < 6. The symptom of hanging when encountering a |
I'm content to let this conversation play out between @addaleax (thank you so much for your help here!) and @bcoe -- I know there are sensible reasons for what |
@addaleax I can confirm running the mentioned line in my terminal fixed this issue. Arch and node 6.5. I was able to run |
Cool! Also, Node v6.6.0 is out, the bug has been fixed in that release – You can just use the normal Arch binaries again! @othiym23 I’d say this can be closed. =) |
archlinux |
Had this issue with node v6.5.0 and npm 3.10.7, I confirm that upgrading to v6.6.0 solved it on my ArchLinux system. |
Same issue with
node -v
npm -v
After update the system that problem was solved
|
Tested with v6.6.0. Issue is gone. We can mark it as closed I think. Thank you to the node team for their hard work. |
Closing as resolved :) |
@kenany I'm seeing this same issue running Node 6.6.0 on Ubuntu 14.04 via Vagrant/VirtualBox on a Mac. Same silent failure every time npm install runs:
Any chance it's related? |
@erquhart Hm, it would be very unlikely. Can you give more information, like:
(edit: to clarify, these questions are somewhat laid out to verify whether this is the same bug or not) |
@addaleax installed from Debian NodeSource using the package manager instructions on nodejs.org. The process doesn't hang, in case you were thinking that, but I am able to terminate via ctrl+c. $ npm -v && node -p process.versions
3.10.3
{ http_parser: '2.7.0',
node: '6.6.0',
v8: '5.1.281.83',
uv: '1.9.1',
zlib: '1.2.8',
ares: '1.10.1-DEV',
icu: '56.1',
modules: '48',
openssl: '1.0.2h' } |
Yeah, that’s something unrelated then. I guess the best thing to do is update npm ( |
@addaleax one guess what error I got while attempting to install the latest npm lol. Opening a new issue. Thanks for your help! |
Fixes: #13782 Credit: @benjamincoe PR-URL: #13953
I am getting this issue on node 6.9.4, npm 3.10.10, |
same on 7.5 |
What helped for me is that i made extra swap and ram space for my virtual machine so the extracting process would not be killed. |
So, what is the final solution? Still have the problem on:
|
@lwmonster Can you update |
@addaleax Still the same problem:
|
$ npm -v && node -p process.versions
3.10.10
{ http_parser: '2.7.0',
node: '6.11.2',
v8: '5.1.281.103',
uv: '1.11.0',
zlib: '1.2.11',
ares: '1.10.1-DEV',
icu: '58.2',
modules: '48',
openssl: '1.0.2l' } |
@NullDivision I still experience this problem on Centos7
the vps is froozen by the npm install. |
@addaleax bump, i think this issue still persist as you can read from the comments after your message. |
related: |
I think I am also seeing this issue, but not sure. Any parallel extraction seems to fail on digitialocean's ubuntu setup. |
When running
npm i
the process hangs with message:npm iextract:webpack: sill doParallel extract 1000
The text was updated successfully, but these errors were encountered: