Need Help running npm run start:web.
Hi, I'm having issues running the
npm run start:web
command, it gets stuck at "Starting development server...
" for a very long time. I've been able to successfully run the api using npm run start:api
, and worker using npm run start:worker
and they worked fine.
Operating system: Linux (Ubuntu 20.04 WSL)
Steps taken so far:
1. Forked and clone the next branch of the novu repository.
2. Installed and started Redis and Mongodb
3. Installed nvm and use node version 16.15.1
as recommended by the docs here (https://docs.novu.co/community/run-in-local-machine)
4. Ran npm run setup:project
, and sucessfully ran target build for all 66 projects.
5. Started docker.
6. cd
into docker/local/development
and ran "docker-compose up
" and everything ran sucessfully (i think). I have the screenshot attached.
7. Ran the three commands in different terminals "npm run start:web
, npm run start:api
, npm run start:worker
" (only the api
and worker
bulild and run sucessfully, the web
gets stuck at "Starting development server...
"
I've tried this several times over and over again, still same thing.
I had to run npm run clean
, then npm run setup:project
all over again just to be sure, and still, the web
is not starting up. Please what do i need to do.13 Replies
@Hameed78
What is your system configuration?
@Pawan Jain
I have 8GB RAM
Core i5, 2.60GHz CPU
@Hameed78
I am not sure web is taking longer time to run
Do I need to do npm run setup:project? What the use of docker than?
I mean npm run setup:project will install all the dependencies of the project on the local machine , whats the purpose of running docker than?
@hIMANSHU, you just advanced to level 1!
@hIMANSHU
You can use docker deployment option to deploy novu and docker development option to run redis+mongodb+localstack
Answering your question
Do I need to do npm run setup:projectIf you want to run novu in local machine and change something to contribute then you need this command
Yes I understand My questions is if I run npm run setup:project that will directly install the dependecnies on my machine will it pollute the env of my machine?
I just want to setup docker for novu but there's lack of proper documentations to do so.
Which compose file should I run?
docker-compose.yml
Ok, the image is spinning. But is there any document to work. How to contribute? I want to contribute in web!
I tried to create a image from dockerfile provided in web directory but that was terminated with whole lots of errors.
Hi,I am also getting below errors while setting up locally: Starting the development server...
<--- Last few GCs --->
[20721:0x120040000] 128674 ms: Mark-sweep (reduce) 2041.3 (2086.5) -> 2040.8 (2087.0) MB, 3870.5 / 0.0 ms (average mu = 0.126, current mu = 0.002) allocation failure; scavenge might not succeed
[20721:0x120040000] 132730 ms: Mark-sweep (reduce) 2041.9 (2087.2) -> 2041.3 (2087.7) MB, 2830.1 / 0.0 ms (average mu = 0.200, current mu = 0.302) allocation failure; GC in old space requested
<--- JS stacktrace --->
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
1: 0x1044b3c40 node::Abort() [/usr/local/bin/node]
2: 0x1044b3e24 node::ModifyCodeGenerationFromStrings(v8::Local<v8::Context>, v8::Local<v8::Value>, bool) [/usr/local/bin/node]
3: 0x10460b608 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate, char const, bool) [/usr/local/bin/node]
4: 0x1047b5eec v8::internal::EmbedderStackStateScope::EmbedderStackStateScope(v8::internal::Heap*, v8::internal::EmbedderStackStateScope::Origin, cppgc::EmbedderStackState) [/usr/local/bin/node]
5: 0x1047b4894 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/usr/local/bin/node]
6: 0x1047a8928 v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/usr/local/bin/node]
7: 0x1047a916c v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/usr/local/bin/node]
8: 0x10478f0ec v8::internal::Factory::NewFillerObject(int, v8::internal::AllocationAlignment, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/usr/local/bin/node]
@Laxmi, you just advanced to level 1!
I have increased heap size,still i am getting errors.