# Node.js

**URL:** https://travis-ci.community/c/languages/nodejs/25.md

[Latest](https://travis-ci.community/latest.md) · [Categories](https://travis-ci.community/categories.md) · [Tags](https://travis-ci.community/tags.md)

---

## [\`npm ERR! \`spin\` is not a valid npm option\`](https://travis-ci.community/t/npm-err-spin-is-not-a-valid-npm-option/13797)

<div class="topic-metadata">

**Author:** [@StevieJayCee](https://travis-ci.community/u/StevieJayCee)\
**Replies:** 3\
**Last updated:** [March 27, 2024, 8:45am UTC](https://travis-ci.community/t/npm-err-spin-is-not-a-valid-npm-option/13797 "2024-03-27T08:45:11Z")

</div>

The latest version of npm no longer accepts deprecated commands and the Travis nodeJS build is pulling this command in from somewhere that isn’t the project .travis.yml. Is this running in the background somewhere? I…

---

## [Node: /lib/x86\_64-linux-gnu/libm.so.6: version \`GLIBC\_2.27' not found (required by node)](https://travis-ci.community/t/node-lib-x86-64-linux-gnu-libm-so-6-version-glibc-2-27-not-found-required-by-node/13655)

<div class="topic-metadata">

**Author:** [@JJPell](https://travis-ci.community/u/JJPell)\
**Replies:** 1\
**Last updated:** [May 3, 2023, 1:10pm UTC](https://travis-ci.community/t/node-lib-x86-64-linux-gnu-libm-so-6-version-glibc-2-27-not-found-required-by-node/13655 "2023-05-03T13:10:22Z")

</div>

Hi, When attempting any kind of nodejs build with Travis, I get the following errors: node: /lib/x86\_64-linux-gnu/libm.so.6: version \`GLIBC\_2.27' not found (required by node) node: /lib/x86\_64-linux-gnu/libc.so.6: vers…

---

## [All tests pass but Travis exits with a 1](https://travis-ci.community/t/all-tests-pass-but-travis-exits-with-a-1/13759)

<div class="topic-metadata">

**Author:** [@robhicks](https://travis-ci.community/u/robhicks)\
**Replies:** 1\
**Last updated:** [April 18, 2023, 2:28pm UTC](https://travis-ci.community/t/all-tests-pass-but-travis-exits-with-a-1/13759 "2023-04-18T14:28:31Z")

</div>

This started last week. All of my tests pass but Travis emits the following: The command "npm run test:ci" exited with 1. Here is an example run. I have run it in debug mode but the results are the same.

---

## [The command "npm config set spin false" failed and exited with 1 during](https://travis-ci.community/t/the-command-npm-config-set-spin-false-failed-and-exited-with-1-during/12909)

<div class="topic-metadata">

**Author:** [@MarcMcIntosh](https://travis-ci.community/u/MarcMcIntosh)\
**Replies:** 8\
**Last updated:** [December 16, 2022, 6:10pm UTC](https://travis-ci.community/t/the-command-npm-config-set-spin-false-failed-and-exited-with-1-during/12909 "2022-12-16T18:10:52Z")

</div>

Hello, I’m getting this error when using node v18 linux . (works on 16 and 14 and windows with version 18) e\[0K$ nvm install node Downloading and installing node v18.0.0... Downloading https://nodejs.org/dist/v18.0.0/n…

---

## [Mocha not found!](https://travis-ci.community/t/mocha-not-found/12526)

<div class="topic-metadata">

**Author:** [@emre-unaldi](https://travis-ci.community/u/emre-unaldi)\
**Replies:** 1\
**Last updated:** [December 21, 2021, 7:38pm UTC](https://travis-ci.community/t/mocha-not-found/12526 "2021-12-21T19:38:58Z")

</div>

Hello friends I’m trying to develop a restful api with nodejs and I want to integrate the application that I went live with heroku with travis, but even though I did everything, mocha: not found The command “npm run te…

---

## [Node\_js lts/\* failing on Windows](https://travis-ci.community/t/node-js-lts-failing-on-windows/12393)

<div class="topic-metadata">

**Author:** [@chrisveness](https://travis-ci.community/u/chrisveness)\
**Replies:** 4\
**Last updated:** [December 14, 2021, 11:59pm UTC](https://travis-ci.community/t/node-js-lts-failing-on-windows/12393 "2021-12-14T23:59:41Z")

</div>

My .travis.yml config specifies: language: node\_js node\_js: - "node" - "lts/\*" os: - linux - osx - windows which runs fine on Linux & OSX, but on Windows it errors out with $ nvs add lts/\* Downloading bootstrap node…

---

## [WebDriverError: unknown error: cannot find Chrome binary(Mocha test)](https://travis-ci.community/t/webdrivererror-unknown-error-cannot-find-chrome-binary-mocha-test/11569)

<div class="topic-metadata">

**Author:** [@iqbalsingh-qa](https://travis-ci.community/u/iqbalsingh-qa)\
**Replies:** 4\
**Last updated:** [May 11, 2021, 6:25am UTC](https://travis-ci.community/t/webdrivererror-unknown-error-cannot-find-chrome-binary-mocha-test/11569 "2021-05-11T06:25:07Z")

</div>

I’m very new to Travis CI and I’m currently setting up a test for a Private project. I am facing an issue with the chrome. My automation framework is following a POM modal using nodejs, selenium-webdriver, and mocha. Ev…

---

## [Issue getting my project to build](https://travis-ci.community/t/issue-getting-my-project-to-build/11558)

<div class="topic-metadata">

**Author:** [@danikban](https://travis-ci.community/u/danikban)\
**Replies:** 4\
**Last updated:** [May 5, 2021, 2:49am UTC](https://travis-ci.community/t/issue-getting-my-project-to-build/11558 "2021-05-05T02:49:36Z")

</div>

I am not sure if there is a syntax issue with my yml file, or if I am not following the instructions to get a build to trigger. I’ve tried committing a change to a file in a branch after the yml file has been pushed to m…

---

## [CI tests fail on latest Node with ENOENT for \`./node\_modules/fsevents/node\_modules/\<etc\>\`](https://travis-ci.community/t/ci-tests-fail-on-latest-node-with-enoent-for-node-modules-fsevents-node-modules-etc/11272)

<div class="topic-metadata">

**Author:** [@dhowe](https://travis-ci.community/u/dhowe)\
**Replies:** 2\
**Last updated:** [March 10, 2021, 12:39pm UTC](https://travis-ci.community/t/ci-tests-fail-on-latest-node-with-enoent-for-node-modules-fsevents-node-modules-etc/11272 "2021-03-10T12:39:59Z")

</div>

$ nvm install node $ node --version v15.11.0 $ npm --version 7.6.0 $ nvm --version 0.37.2 $ npm ci npm ERR! code ENOENT npm ERR! syscall chmod npm ERR! path /home/travis/build/dhowe/ritajs/node\_modules/fsevents/node\_mod…

---

## [Run 'npm ci' and 'npm run build' only once](https://travis-ci.community/t/run-npm-ci-and-npm-run-build-only-once/10902)

<div class="topic-metadata">

**Author:** [@daraclare](https://travis-ci.community/u/daraclare)\
**Replies:** 5\
**Last updated:** [January 4, 2021, 9:53pm UTC](https://travis-ci.community/t/run-npm-ci-and-npm-run-build-only-once/10902 "2021-01-04T21:53:06Z")

</div>

Hi, I’ve split my tests up so they run in different stages, however, using the config below, ‘npm ci’ and ‘npm run build’ are run before each test. Is it possible to run these scripts only once? My aim is to speed up the…

---

## [How to change node-gyp version?](https://travis-ci.community/t/how-to-change-node-gyp-version/9796)

<div class="topic-metadata">

**Author:** [@Kixunil](https://travis-ci.community/u/Kixunil)\
**Replies:** 1\
**Last updated:** [December 13, 2020, 7:18pm UTC](https://travis-ci.community/t/how-to-change-node-gyp-version/9796 "2020-12-13T19:18:49Z")

</div>

According to node-gyp -v in my failed build the node-gyp version in Ubuntu Focal is 3.3.1. This is super-weird since Ubuntu Focal is based on Debian 10, which contains node-gyp version 3.8.0, which can build the project…

---

## [Travis build stuck on "Trying to build"](https://travis-ci.community/t/travis-build-stuck-on-trying-to-build/10796)

<div class="topic-metadata">

**Author:** [@djhouseknecht](https://travis-ci.community/u/djhouseknecht)\
**Replies:** 4\
**Last updated:** [December 11, 2020, 8:08pm UTC](https://travis-ci.community/t/travis-build-stuck-on-trying-to-build/10796 "2020-12-11T20:08:40Z")

</div>

My open source project can’t seem to build. I have pushed commits and tried triggering a new build using the new Beta feature on travis-ci. The build is stuck on “Trying to build” Any ideas what may be happening? Lit…

---

## [Build passing with compilation error TS2554](https://travis-ci.community/t/build-passing-with-compilation-error-ts2554/10743)

<div class="topic-metadata">

**Author:** [@randomdeveloper](https://travis-ci.community/u/randomdeveloper)\
**Replies:** 1\
**Last updated:** [December 3, 2020, 9:44pm UTC](https://travis-ci.community/t/build-passing-with-compilation-error-ts2554/10743 "2020-12-03T21:44:34Z")

</div>

Hi, My build is passing even though the log shows a compilation error from my TypeScript code: \[tsl\] ERROR in /home/travis/build/\[…\].spec.ts TS2554: Expected 5 arguments, but got 4. Failed to compile. The build keep…

---

## [What .travis.yml to use for a Meteor project](https://travis-ci.community/t/what-travis-yml-to-use-for-a-meteor-project/10404)

<div class="topic-metadata">

**Author:** [@blackslate](https://travis-ci.community/u/blackslate)\
**Replies:** 1\
**Last updated:** [November 1, 2020, 1:52pm UTC](https://travis-ci.community/t/what-travis-yml-to-use-for-a-meteor-project/10404 "2020-11-01T13:52:40Z")

</div>

I have set up a GitHub repository with Travis CI integration for my Meteor project. When I push a new build, the CI test fails with the following reason: PackageName@ test /home/travis/build/packagename/gitname meteo…

---

## [Running Multiple Processes at the Same Time](https://travis-ci.community/t/running-multiple-processes-at-the-same-time/10220)

<div class="topic-metadata">

**Author:** [@AliRain](https://travis-ci.community/u/AliRain)\
**Replies:** 2\
**Last updated:** [October 20, 2020, 1:49pm UTC](https://travis-ci.community/t/running-multiple-processes-at-the-same-time/10220 "2020-10-20T13:49:27Z")

</div>

I need to run multiple scripts for my tests and I can’t figure out how to have them run at the same time. My current config: language: node\_js node\_js: - 12.19.0 install: - yarn script: - yarn build - yarn start …

---

## [Nvm: command not found when running openjdk build](https://travis-ci.community/t/nvm-command-not-found-when-running-openjdk-build/10075)

<div class="topic-metadata">

**Author:** [@ericvergnaud](https://travis-ci.community/u/ericvergnaud)\
**Replies:** 3\
**Last updated:** [October 5, 2020, 11:48am UTC](https://travis-ci.community/t/nvm-command-not-found-when-running-openjdk-build/10075 "2020-10-05T11:48:53Z")

</div>

Hi, I have this Java project, where I need to run some nodejs stuff In the install phase, I run: nvm install 14 but this raises an error: nvm: command not found what am I missing ?

---

## [Timeouts downloading (or building?) nodejs](https://travis-ci.community/t/timeouts-downloading-or-building-nodejs/9930)

<div class="topic-metadata">

**Author:** [@starpit](https://travis-ci.community/u/starpit)\
**Replies:** 1\
**Last updated:** [September 29, 2020, 7:25am UTC](https://travis-ci.community/t/timeouts-downloading-or-building-nodejs/9930 "2020-09-29T07:25:56Z")

</div>

For the past hour or so, our builds have been failing with networking issues. In particular, they can’t get beyond downloading nodejs. curl: (35) gnutls\_handshake() failed: Error in the pull function. Or, sometimes, …

---

## [Everything is ignored by Jest if I ignore "build"](https://travis-ci.community/t/everything-is-ignored-by-jest-if-i-ignore-build/9757)

<div class="topic-metadata">

**Author:** [@darklight9811](https://travis-ci.community/u/darklight9811)\
**Replies:** 1\
**Last updated:** [August 30, 2020, 12:53pm UTC](https://travis-ci.community/t/everything-is-ignored-by-jest-if-i-ignore-build/9757 "2020-08-30T12:53:14Z")

</div>

I’m using jest and yarn to test if everything is right, the thing is, it works locally. But when pushing to git/travis, it happens a weird bug. Project: https://travis-ci.org/github/darklight9811/candlelit What happens …

---

## ["npm ci" will fail if cached dependency includes npm](https://travis-ci.community/t/npm-ci-will-fail-if-cached-dependency-includes-npm/4203)

<div class="topic-metadata">

**Author:** [@MasterOdin](https://travis-ci.community/u/MasterOdin)\
**Replies:** 4\
**Last updated:** [July 20, 2020, 4:49pm UTC](https://travis-ci.community/t/npm-ci-will-fail-if-cached-dependency-includes-npm/4203 "2020-07-20T16:49:58Z")

</div>

Travis is failing when running npm ci if a previous build had installed npm as a dependency, in this case semantic-release/npm, as ./node\_modules/.bin is added to $PATH and so it’ll attempt to use ./node\_modules/.bin/npm …

---

## [Help I need node.js \> 10 and python 3](https://travis-ci.community/t/help-i-need-node-js-10-and-python-3/9328)

<div class="topic-metadata">

**Author:** [@clare](https://travis-ci.community/u/clare)\
**Replies:** 1\
**Last updated:** [July 15, 2020, 1:17pm UTC](https://travis-ci.community/t/help-i-need-node-js-10-and-python-3/9328 "2020-07-15T13:17:36Z")

</div>

Hi, Here is my build https://travis-ci.com/github/clare/cacophony-api/jobs/360678949/config I have python3 pytests for a js project (crazy huh?) So I need python3, with pip3 and pytest, but I also need node.js \> 10 in…

---

## [Node JS tests with Jest hang after successful test (locally works fine)](https://travis-ci.community/t/node-js-tests-with-jest-hang-after-successful-test-locally-works-fine/9294)

<div class="topic-metadata">

**Author:** [@marcobuschini](https://travis-ci.community/u/marcobuschini)\
**Replies:** 2\
**Last updated:** [July 10, 2020, 5:41pm UTC](https://travis-ci.community/t/node-js-tests-with-jest-hang-after-successful-test-locally-works-fine/9294 "2020-07-10T17:41:02Z")

</div>

I have 4 suites, 15 tests that pass locally, 4 suites, 15 tests that pass on TravisCI. Locally it exits cleanly, on Travis it hangs till timeout. My repository at https://github.com/marcobuschini/nestjs-graphql-mysql-d…

---

## [Code Signing Not Work (Electron-builder)](https://travis-ci.community/t/code-signing-not-work-electron-builder/9240)

<div class="topic-metadata">

**Author:** [@boyphongsakorn](https://travis-ci.community/u/boyphongsakorn)\
**Replies:** 0\
**Last updated:** [July 5, 2020, 3:41am UTC](https://travis-ci.community/t/code-signing-not-work-electron-builder/9240 "2020-07-05T03:41:31Z")

</div>

Exit code: 127. Command failed: /home/travis/.cache/electron-builder/winCodeSign/winCodeSign-2.6.0/linux/osslsigncode -in /home/travis/build/boyphongsakorn/saox/dist/win-unpacked/saox.exe -out /home/travis/build/boyphong…

---

## [Error: Failed to launch the browser process!](https://travis-ci.community/t/error-failed-to-launch-the-browser-process/9037)

<div class="topic-metadata">

**Author:** [@akankshagairola5](https://travis-ci.community/u/akankshagairola5)\
**Replies:** 2\
**Last updated:** [June 17, 2020, 1:42pm UTC](https://travis-ci.community/t/error-failed-to-launch-the-browser-process/9037 "2020-06-17T13:42:23Z")

</div>

I am using latest node version, mocha and puppeteer. My test runs perfectly when running from my local machine. For travis, I am always getting an error Error: Failed to launch the browser process! \[5546:5546:0617/1033…

---

## [Remote debugging using ndb](https://travis-ci.community/t/remote-debugging-using-ndb/8943)

<div class="topic-metadata">

**Author:** [@sjurgis](https://travis-ci.community/u/sjurgis)\
**Replies:** 0\
**Last updated:** [June 9, 2020, 10:17am UTC](https://travis-ci.community/t/remote-debugging-using-ndb/8943 "2020-06-09T10:17:09Z")

</div>

Hi, I’m new to this forum :slight\_smile: I’ve inherited some build that is working well on my machine, but fails on travis. I’ve managed to ssh into build via debug mode, but struggled to find any way actually inspect t…

---

## [Repeated build timeout errors on a commit](https://travis-ci.community/t/repeated-build-timeout-errors-on-a-commit/8882)

<div class="topic-metadata">

**Author:** [@karantakalkar](https://travis-ci.community/u/karantakalkar)\
**Replies:** 1\
**Last updated:** [June 3, 2020, 8:00pm UTC](https://travis-ci.community/t/repeated-build-timeout-errors-on-a-commit/8882 "2020-06-03T20:00:59Z")

</div>

Hi All, This is in context of https://github.com/openMF/web-app/ repository. Recently one of my commit is repeatedly failing by timeout for no evident reason, Here is the link to it https://travis-ci.com/github/openMF…

---

## ["ERROR Script load failed: scripts/build.sh": SyntaxError at "(function(exports, require, module, \_\_filename, \_\_dirname, hexo){#!/bin/bash"](https://travis-ci.community/t/error-script-load-failed-scripts-build-sh-syntaxerror-at-function-exports-require-module-filename-dirname-hexo-bin-bash/8753)

<div class="topic-metadata">

**Author:** [@upcwangying](https://travis-ci.community/u/upcwangying)\
**Replies:** 7\
**Last updated:** [June 2, 2020, 1:14am UTC](https://travis-ci.community/t/error-script-load-failed-scripts-build-sh-syntaxerror-at-function-exports-require-module-filename-dirname-hexo-bin-bash/8753 "2020-06-02T01:14:15Z")

</div>

https://travis-ci.org/github/chenyifaerfans/chenyifaerfans

---

## [Node builds failing with ENOENT on node\_modules/.staging](https://travis-ci.community/t/node-builds-failing-with-enoent-on-node-modules-staging/8807)

<div class="topic-metadata">

**Author:** [@tandrewnichols](https://travis-ci.community/u/tandrewnichols)\
**Replies:** 2\
**Last updated:** [May 29, 2020, 4:37pm UTC](https://travis-ci.community/t/node-builds-failing-with-enoent-on-node-modules-staging/8807 "2020-05-29T16:37:10Z")

</div>

We’re seeing all node builds fail in multiple repos at the npm install step where something seems to be looking for a node\_modules/.staging folder that isn’t there. This has just started in the last few hours. Here’s an …

---

## [Compile sass with gulp](https://travis-ci.community/t/compile-sass-with-gulp/8598)

<div class="topic-metadata">

**Author:** [@webmasterpf](https://travis-ci.community/u/webmasterpf)\
**Replies:** 0\
**Last updated:** [May 14, 2020, 2:07pm UTC](https://travis-ci.community/t/compile-sass-with-gulp/8598 "2020-05-14T14:07:56Z")

</div>

Hello, Firstly, can I compile sass files with gulp on Travis CI ? If yes, how to achive this ? Actually my .travis.yml file look like this: language: node\_js node\_js: #Version de NodeJS à utiliser - "8" before\_…

---

## [Chrome headless not working for node](https://travis-ci.community/t/chrome-headless-not-working-for-node/8564)

<div class="topic-metadata">

**Author:** [@gautamkrishnar](https://travis-ci.community/u/gautamkrishnar)\
**Replies:** 1\
**Last updated:** [May 11, 2020, 8:13pm UTC](https://travis-ci.community/t/chrome-headless-not-working-for-node/8564 "2020-05-11T20:13:39Z")

</div>

Recently testing on chrome headless with karma is failing in Travis ci. It was working fine previously. Does anyone have this issue? https://travis-ci.org/github/gautamkrishnar/nothing-private/builds/685274916

---

## [Travis-ci build failed while running npm copy files script](https://travis-ci.community/t/travis-ci-build-failed-while-running-npm-copy-files-script/8157)

<div class="topic-metadata">

**Author:** [@dabbara-geetha](https://travis-ci.community/u/dabbara-geetha)\
**Replies:** 0\
**Last updated:** [April 15, 2020, 1:13am UTC](https://travis-ci.community/t/travis-ci-build-failed-while-running-npm-copy-files-script/8157 "2020-04-15T01:13:05Z")

</div>

I’m new to travis-ci and trying to deploy an excel custom functions js application(nodejs app) to GitHub pages. I’m using npm copyfiles to copy files from src to dist post-build. This is working fine in local. But travi…

[Next page](https://travis-ci.community/c/languages/nodejs/25.md?page=1)
