Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [node.js]

An open-source, cross-platform Javascript interpreter and run-time environment. Mostly used for server-side web-app programming and various command-line tools.

0
votes
1answer
25 views

How to cache node_modules folder when using Jenkins Multibranch Pipeline

I'm using Jenkins Multibranch Pipeline to handle my CI/CD and I'd like to know if is there a way to cache my node_modules folder? Every time I push a branch, I execute yarn to install the ...
0
votes
0answers
4 views

WebPack 4 command hangs when deploying to GAE (Google App Engine Flexible)

We have a React/Node/WebPack application. We used to deploy it in GAE Flexible for the past 2 years or so. Recently we updated our libraries to React 16, WebPack 4, and Node 10. Since we merged the ...
0
votes
2answers
61 views

Docker Node.js Error: Cannot find module

When I start a dockerized Node.js testapp with sudo docker-compose up I get the following error: Starting testapp_web_1 ... done Attaching to testapp_web_1 web_1 | web_1 | > testapp@0.0.1 ...
0
votes
2answers
25 views

AWS lambda: works locally but fails in deplyment

I have a node.js lambda function that adds a database entry and then calls another lambda function. The code works fine when I test locally via serverless invoke local --function create --path mocks/...
0
votes
1answer
20 views

TravisCI build continues to fail even after changing alpine version

So I ran my Docker build with TravisCI and I got a failure like so: FAIL src/App.test.js ● Test suite failed to run TypeError: Cannot assign to read only property 'Symbol(Symbol.toStringTag)' ...
6
votes
2answers
81 views

How should CI/CD deploy to production environment - copy artifacts or git pull from the server?

We have an internal CI/CD server running private GitLab. It has the source code of our NodeJS project. We would like to run CI/CD and have it deploys to our on-premises production server. (Let's ...
-1
votes
1answer
17 views

Utilise AWS IoT on non-supported hardware

Before I dig in too far, is there any way I can use any of the AWS IoT core functions on non-supported hardware? I can use the AWS Node.js libraries that are available (for my hardware), but I don't ...
1
vote
0answers
29 views

node js deployment on production server

I wanted to know standard process to deploy nodejs app on production. As of now I am following the process as below Pull the source code git pull git_url Install npm dependencies npm install ...
0
votes
0answers
173 views

How to update nodejs on Jenkins master node

I am in the middle of trying to implement a build/deploy job in Jenkins by which the latest version of source code is pulled from git, built and then deployed to GCP. So far i am able to retrieve the ...
-1
votes
1answer
520 views

zip: command not found after installing zip on NODE docker image, even after installing p7zip?

I'm trying to zip my dist folder and post to it Azure's kudu zipdeploy endpoint but I keep getting this error regardless of the fact that I have installed a zipping package myself. My docker image: ...
2
votes
2answers
250 views

Preinstall packages for a nodejs Docker Image according to package.json

I would like to prepare a Docker image for a nodejs project. The developers use package.json to list their node module dependencies. I would like to prepare the Docker image (as base on the Dockerfile)...
3
votes
1answer
38 views

Bamboo equivalent to Jenkins color

I'm currently building out a radiator screen to bridge a few different areas of our CI\CD pipeline, pulling in metrics as well as build statuses. We're also migrating from Jenkins to Bamboo In ...
1
vote
2answers
84 views

Single Page Apps and DevOps Pipeline?

I am new to the whole DevOps process. As a software developer with some experience in building single-page applications (SPAs) using Webpack which already takes care of the unit checks, code ...
2
votes
0answers
21 views

How to make fast JSON responses (or equivalent) between server app and front-end apps all running on OpenShift?

I have a system with 5 source data stores (mostly PostgreSQL databases) from which, I want to connect them all to containers running on OpenShift: A library of react applications who's components make ...
5
votes
1answer
2k views

Nginx reverse proxy setup issues with Docker containers

I have two running docker containers: A Docker container running Nginx that serves Angular app resource files that were copied into the Docker image on docker build A Docker container that is an api ...
4
votes
3answers
2k views

Docker Container always stopped and started

I am using docker compose to build two containers, one is nodejs with pm2 and another is nginx. The nginx one runs well but the nodejs with pm2 one keeps restarting: it runs for one second, then ...
3
votes
1answer
319 views

Why is my build script only failing when it is run in a vNext build?

I am running a build process on an on-prem server with TFS 2017 and vNext. The build works, but it takes 20+ minutes. This is an application that does msbuild, ngc, yarn, and karma. I would be totally ...
2
votes
2answers
72 views

Automatic production deployment for a Node.js app on RHEL 7?

I am looking for some way to have a maximally simple(no Jenkins or anything like that) automatic production deployment for a Node.js application on a RHEL 7 system. The caveat is: At the organization ...
5
votes
1answer
2k views

How does dependency management for Node.js differ from Maven?

Strange enough node.js unlikely maven installs the packages the software needs inside the project directory. Is there a way to introduce a central repository which also caches different versions of ...