The Team Build process halts to allow the Gulp task to complete before moving forward

After successfully pushing my existing nodejs app to the VSTS repository, I incorporated three build tasks into the workflow.

  1. The first task, npm install, is running smoothly without any issues.
  2. However, when it comes to the Gulp task, which includes a gulpfile with a command that starts listening on specific ports using "nodemon app.js", the third task for building the Web App fails to initiate. This is because the Gulp task takes precedence and needs to finish before the Web App task can begin. For instance, if the message "Express server started listening on port 1234" appears, then the gulp build task will still be in progress, causing a delay in starting the subsequent task.

Answer №1

Certain tasks, such as running nodemon, initiate a background operation to monitor the folder for modifications. Typically, these tasks are placed within the watch command and then streamlined in a simplified version under the build command.

If the Watch process remains active, control is not returned to the Build agent, ultimately causing the build to freeze.

The most effective solution is to exclude the commands responsible for starting watch/monitor processes so they do not execute during a build.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Unable to display socket data in Angular js Table using ng-repeat

div(ng-controller="dashController") nav.navbar.navbar-expand-sm.navbar-dark.fixed-top .container img(src='../images/Dashboard.png', alt='logo', width='180px') ul.navbar-nav li.nav-item ...

Using two different Readable streams to pipe to the same Writable stream multiple times

In my current project, I am facing the challenge of concatenating a string and a Readable stream. The Readable stream is linked to a file that may contain data in multiple chunks, making it quite large. My objective is to combine these two entities into on ...

Make sure to use the correct package version when compiling assets using webpack

Our asset building process involves webpack. Recently, I encountered an issue when upgrading graft-js-plugins-editor from version 2.0.0-beta1 to 2.0.0-beta5. Unfortunately, my colleague forgot to run npm install before building the assets, which resulted i ...

What situations call for the use of 'import * as' in TypeScript?

Attempting to construct a cognitive framework for understanding the functionality of import * as Blah. Take, for instance: import * as StackTrace from 'stacktrace-js'; How does this operation function and in what scenarios should we utilize imp ...

Exploring the Differences Between Arrays in JavaScript

I am currently tackling the task of comparing arrays in JavaScript, specifically within node.js. Here are the two arrays I am working with: Array 1: [16,31,34,22,64,57,24,74,7,39,72,6,42,41,40,30,10,55,23,32,11,37,4,3,2,52,1,17,50,56,60,65,48,43,58,28,3 ...

Risks of Security Breaches Following Installation of Certain NPM Packages in a ReactJS Project

Hey there, I'm currently in the process of learning how to create a react app that incorporates a CSS framework like materialize and bootstrap. During this learning experience, I've encountered an interesting issue with npm versions. Specifically ...

Access denied while attempting to execute npm start

Trying to run a node and react js project given by someone with an error message. Can anyone assist in resolving this issue? cd frontend npm start > <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="5a3c2835342e3f343e1a6a746 ...

"Utilizing Adyen's Drop-in feature to securely store data in card.encrypted

Our application is currently integrating payments through the Adyen Web Drop-in plugin, but due to not being PCI compliant, we are receiving encrypted data like the example below: { "data": { "paymentMethod": { "type": "scheme", ...

What is the process for uploading a single file and an array of files with varying names using multer?

I am having trouble figuring out how to upload a main image and side images from 2 different file inputs using multer. It seems that multer only accepts one upload per route. How can I work around this issue? I keep getting an unexpected field error when a ...

The command 'run-s' is not valid and cannot be found as an internal or external command. Please make sure it is a recognized program or batch file

Unexpectedly, I encountered an issue while attempting to utilize the npm link command to test my local package. Any ideas on how to resolve this? Operating System: Windows 10 Node version: 15.9.0 NPM version: 8.12.2 ...

What is the resolution if I need to utilize a property that is untyped?

Transitioning to TypeScript from plain old JavaScript is a step I'm taking because I believe it offers significant advantages. However, one drawback that has come to light is that not all attributes are typed, as I recently discovered. For instance: ...

ERROR: The use of @xenova/transformers for importing requires ESM

When working with my Node.js application, I usually start by importing the necessary modules like this: import { AutoModel, AutoTokenizer } from '@xenova/transformers'; Afterwards, I utilize them in my code as shown below: const tokenizer = awai ...

Tips for storing mustache templates for rendering in Node.js

My data is stored in the following format: let data = {"list" :[ { "email": "<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="98f9fafb8afef0f9f5e8f4fdb6fbf7f5">[email protected] ...

The Yeoman Generator encountered an issue with version 1.1 where it was unable to read the property Base

I recently began utilizing the Yeoman Generators to create custom generators using the generator-generator tool. After following several tutorials, I established a main index.js file where the following code is implemented: index.js var yeoman = require( ...

Learn how to allow access to HTTPS using the curl command within a Node.js environment

My bash emulator can successfully execute the curl command. However, when I attempt to run it within nodejs using the child_process module, I encounter an error stating that the Protocol "'https" is not supported or disabled in libcurl. By running "c ...

The sequence of events in Node.js that occur asynchronously

After developing my node.js code, I noticed that the app.use(passwordProtected) function is not executed when accessing the '/' endpoint. It only runs for the '/advanced-view' endpoint. I had assumed that since these are multiple async ...

"Encountered an issue while running the clean-css script in npm build

Encountering a peculiar error while running npm run build:prod today. "build:prod": "ng build --prod --aot=false --preserve-symlinks" The error message reads: 92% chunk asset optimizationC:\Projects\Latest_Feb26\ASSURE.OdyssEYGen2\Fr ...

What is the correct way to invoke a function from a different file?

Having trouble calling a function from another file in my JS code. I am unable to call a function from another js file. I suspect there is an issue with linking the two files. Code snippet from my first JS file const { response } = require('expre ...

Utilizing IBM Cloud Functions to display API response data within Watson Assistant using node.js and JSON formatting

Utilizing IBM cloud functions, I am making calls to two Joke APIs. The initial API returns the following results: Results: { "response": { "body": { "body": [ { "_id": "5f80ccd64178 ...

NPM encountered an issue while attempting to perform the installation

Having some issues with NPM while trying to install various apps. The errors that I am encountering are outlined below: npm ERR! Darwin 14.5.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "ember-cli" npm ERR! node v4.0.0 npm ...