Help with the installation please


#1

morning i’m new on ionic and i’m trying to install it but i’ve this result

npm i
⠴ Running command
<— Last few GCs —>

[8600:0x39e8d50] 331814 ms: Mark-sweep 1323.6 (1382.6) -> 1323.5 (1383.1) MB, 989.7 / 0.0 ms allocation failure GC in old space requested
[8600:0x39e8d50] 332747 ms: Mark-sweep 1323.5 (1383.1) -> 1323.4 (1350.6) MB, 933.0 / 0.0 ms last resort GC in old space requested
[8600:0x39e8d50] 333651 ms: Mark-sweep 1323.4 (1350.6) -> 1323.4 (1350.6) MB, 904.2 / 0.0 ms last resort GC in old space requested

<— JS stacktrace —>

==== JS stack trace =========================================

Security context: 0x3d666aa25879
1: /* anonymous */ [/usr/lib/node_modules/ionic/node_modules/@ionic/cli-utils/lib/utils/shell.js:~44] [pc=0x3af6e11be2e1](this=0x3921a6a9a781 ,chunk=0x37b86990bb01 )
2: addChunk(aka addChunk) [_stream_readable.js:~261] [pc=0x3af6e11bea86](this=0x23b6c822d1 ,stream=0x3921a6a9a781 ,state=0…

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
1: node::Abort() [ionic]
2: 0x8c20ec [ionic]
3: v8::Utils::ReportOOMFailure(char const*, bool) [ionic]
4: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [ionic]
5: v8::internal::factory::NewUninitializedFixedArray(int) [ionic]
6: 0xd4af53 [ionic]
7: v8::internal::Runtime_GrowArrayElements(int, v8::internal::Object**, v8::internal::Isolate*) [ionic]
8: 0x3af6e10042fd
Abandon (core dumped)
root@cool-HP-EliteBook-8470p:/home/cool#

please i need your help


#2

hello, maybe this helps

Modify your ionic.cmd file in C:\Users\AppData\Roaming\npm by adding --max_old_space_size. I set mine to 8096.

@if EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" --max_old_space_size=8048 "%~dp0\node_modules\ionic\bin\ionic" %*
) ELSE (
@SETLOCAL
@set PATHEXT=%PATHEXT:;.JS;=;%
node --max_old_space_size=8048 "%~dp0\node_modules\ionic\bin\ionic" %*
)

see here https://github.com/ionic-team/ionic-cli/issues/1453

Best regards, anna-liebt


Ionic build with firebase fail (Javascript heap out of memory)
#3

Hello bro i’m using Ubuntu


#4

Hello sis,

read the link.

Best regards, anna-liebt