Open
Description
Hello,
I'm trying to build a simple web app via Docker using the node:12
(also tried node:14
, no luck) image on my Raspberry Pi 4 running Ubuntu 20.04. When the build process wants to execute npm i
I just get the error:
Aborted (core dumped)
The command '/bin/sh -c npm i' returned a non-zero code: 134
Even when I go into a new interactive container and execute npm
(no arguments) myself I get the same error.
For some reason, the node:14-alpine
image worked, but since my app requires native dependencies that I need to recompile and the image doesn't come with the right build tools I can't use that.
Activity
LaurentGoderre commentedon Apr 28, 2020
Here's the documentation on how to do this: https://github.com/nodejs/docker-node/blob/master/docs/BestPractices.md#node-gyp-alpine
SuNNjek commentedon Apr 28, 2020
@LaurentGoderre Thanks, I might try this as a workaround. However, this doesn't change the fact, that the ARM64 image simply doesn't work
lewisacidic commentedon May 2, 2020
I too am using arm64 based Ubuntu 20.04, and ran into the same issue as @SuNNjek.
I've found its specifically the stretch (and slim variant) containers that are producing this. It works with buster (and slim variant), so that's an easier workaround than using alpine!
shotor commentedon May 5, 2020
I have the same issue on a raspberry pi 4 running ubuntu server 20.04.
Every yarn or npm command in a container immediately returns
Aborted (core dumped)
. Both commands work fine outside docker.I tried stretch packages from node 10 - 14, all with the same error. Buster package works.
samip5 commentedon Jun 3, 2020
I think my issue is related to this.
node --version works, but trying to execute index.js file does not and results in Aborted (core dumped).
Container image: node:14.4
gdb:
bt full trace via gdb:
angeloevangelista commentedon Sep 12, 2020
I solved my problem specifying node and npm version
engines
onpackage.json
:gtporterii commentedon Jan 12, 2021
was working my - visual studios code - I can't even do my classes now
C:\Program Files\nodejs\node.exe .....\LaunchCode\1stAssignment.js
Debugger attached.
C:\Program Files\nodejs\node.exe[17276]: c:\ws\src\node_file.cc:1724: Assertion `(argc) == (5)' failed.
1: 00007FF6F4BD058F napi_wrap+109311
2: 00007FF6F4B752B6 v8::internal::OrderedHashTablev8::internal::OrderedHashSet,1::NumberOfElementsOffset+33302
3: 00007FF6F4B75631 v8::internal::OrderedHashTablev8::internal::OrderedHashSet,1::NumberOfElementsOffset+34193
4: 00007FF6F4B69517 v8::base::CPU::has_sse+13095
5: 00007FF6F53EE72F v8::internal::Builtins::builtin_handle+321471
6: 00007FF6F53EDCC4 v8::internal::Builtins::builtin_handle+318804
7: 00007FF6F53EDFB7 v8::internal::Builtins::builtin_handle+319559
8: 00007FF6F53EDE03 v8::internal::Builtins::builtin_handle+319123
9: 00007FF6F54C9F9D v8::internal::SetupIsolateDelegate::SetupHeap+464173
10: 00007FF6F54628A2 v8::internal::SetupIsolateDelegate::SetupHeap+40498
11: 00007FF6F54628A2 v8::internal::SetupIsolateDelegate::SetupHeap+40498
12: 00007FF6F54628A2 v8::internal::SetupIsolateDelegate::SetupHeap+40498
13: 00007FF6F54628A2 v8::internal::SetupIsolateDelegate::SetupHeap+40498
14: 00007FF6F545C4D9 v8::internal::SetupIsolateDelegate::SetupHeap+14953
15: 00007FF6F54628A2 v8::internal::SetupIsolateDelegate::SetupHeap+40498
16: 00007FF6F54628A2 v8::internal::SetupIsolateDelegate::SetupHeap+40498
17: 00007FF6F54628A2 v8::internal::SetupIsolateDelegate::SetupHeap+40498
18: 00007FF6F54628A2 v8::internal::SetupIsolateDelegate::SetupHeap+40498
19: 00007FF6F54628A2 v8::internal::SetupIsolateDelegate::SetupHeap+40498
20: 00007FF6F54628A2 v8::internal::SetupIsolateDelegate::SetupHeap+40498
21: 00007FF6F54628A2 v8::internal::SetupIsolateDelegate::SetupHeap+40498
22: 00007FF6F546055E v8::internal::SetupIsolateDelegate::SetupHeap+31470
23: 00007FF6F546014C v8::internal::SetupIsolateDelegate::SetupHeap+30428
24: 00007FF6F5330631 v8::internal::Execution::CallWasm+1649
25: 00007FF6F532FE9F v8::internal::Execution::Call+191
26: 00007FF6F541B7E7 v8::Function::Call+615
27: 00007FF6F4B9FCAE napi_unref_threadsafe_function+3278
28: 00007FF6F4BA3D67 node::Start+1159
29: 00007FF6F4BA4161 node::Start+2177
30: 00007FF6F4BF2501 node::LoadEnvironment+49
31: 00007FF6F4B30203 v8::internal::OrderedHashTablev8::internal::OrderedHashSet,1::NumberOfBucketsOffset+9187
32: 00007FF6F4BA3A17 node::Start+311
33: 00007FF6F4A0686C RC4_options+339820
34: 00007FF6F59A604C v8::internal::compiler::RepresentationChanger::Uint32OverflowOperatorFor+153532
35: 00007FF98EFA7034 BaseThreadInitThunk+20
36: 00007FF99055D0D1 RtlUserThreadStart+33
Process exited with code 134