Skip to content

Tag: node.js

Setup Node.JS Server on Ubuntu

I am using the MEAN Stack and I could run my frontend already. After ng build I moved all the content in the dist folder to var/www/html and could access my website. I’m using Apache and my frontend is now available online. The problem is now my backend. I am using Node.js but I have no clue how I can

Failed to commit transaction (conflicting files) when updating packages on Manjaro [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question

expo publish always ends up in Javascript head out of memory on Ubuntu

I have a PC running Ubuntu 20.04.1 LTS with 16GB RAM. I am trying to build apk of a expo react app. Whenever I try to run expo publish –release-channel channel_name it always runs out of memory and gives me following stacktrace: I tried setting up NODE_OPTIONS=–max_old_space_size=8192 and then on running v8.getHeapStatistics() I see following result: I still get same

Docker node cannot find file on mounted volume

I’m trying to run a docker container that has a volume mounted on it that contains ssl keys/files. I keep getting a file not found error when I’ve triple-looked at all the directories and the error and can’t seem to wonder what is going on. To start off, here’s the portion of my code that I’m trying to run that’s

Node JS process running under PM2 and file permissions

I have a small node.js (v13.5.0) server running under PM2 (v4.4.0) on a RHEL 7.6 box. As a part of it’s function it writes a small CSV file to the disc for every incoming request. This app is writing these files with the perms (rw-r—–). The user I am having PM2 executing my process as has umask set to 0022.