# \#npm

**URL:** https://discuss.circleci.com/tag/npm/106.md

[Latest](https://discuss.circleci.com/latest.md) · [Categories](https://discuss.circleci.com/categories.md) · [Tags](https://discuss.circleci.com/tags.md)

---

## [NPM Trusted Publishing integration is way too much of a hassle, we shouldn't have to look up all these UUIDs](https://discuss.circleci.com/t/npm-trusted-publishing-integration-is-way-too-much-of-a-hassle-we-shouldnt-have-to-look-up-all-these-uuids/54588)

<div class="topic-metadata">

**Author:** [@jedwards1211](https://discuss.circleci.com/u/jedwards1211)\
**Replies:** 8\
**Last updated:** [July 23, 2026, 10:57pm UTC](https://discuss.circleci.com/t/npm-trusted-publishing-integration-is-way-too-much-of-a-hassle-we-shouldnt-have-to-look-up-all-these-uuids/54588 "2026-07-23T22:57:25Z")

</div>

Having to look up all these UUIDs for CircleCI Organization, Project, Pipeline, and contexts is a PITA. You wouldn’t like it either if you had dozens and dozens of packages to migrate to trusted publishing. It’s painfu…

---

## [Your output is too large to display in the browser. Only the last 400000 characters are displayed](https://discuss.circleci.com/t/your-output-is-too-large-to-display-in-the-browser-only-the-last-400000-characters-are-displayed/45178)

<div class="topic-metadata">

**Author:** [@aismdev1](https://discuss.circleci.com/u/aismdev1)\
**Replies:** 1\
**Last updated:** [August 24, 2022, 3:16pm UTC](https://discuss.circleci.com/t/your-output-is-too-large-to-display-in-the-browser-only-the-last-400000-characters-are-displayed/45178 "2022-08-24T15:16:21Z")

</div>

i have got the below error while running the workflow, please suggest anyone npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“…

---

## [Permission Denied trying to restore npm cache](https://discuss.circleci.com/t/permission-denied-trying-to-restore-npm-cache/44738)

<div class="topic-metadata">

**Author:** [@secobarbital](https://discuss.circleci.com/u/secobarbital)\
**Replies:** 3\
**Last updated:** [July 21, 2022, 2:33pm UTC](https://discuss.circleci.com/t/permission-denied-trying-to-restore-npm-cache/44738 "2022-07-21T14:33:57Z")

</div>

Hi there, I am trying to cache the npm cache instead of node\_modules, but I am getting Permission Denied on every file, as shown in the code block below. I have tried doing this manually with restore\_cache and save\_cac…

---

## [Npm ERR! enoent ENOENT: no such file or directory, open '/usr/app/package.json' CI error but works locally](https://discuss.circleci.com/t/npm-err-enoent-enoent-no-such-file-or-directory-open-usr-app-package-json-ci-error-but-works-locally/44580)

<div class="topic-metadata">

**Author:** [@mohamedgamalali](https://discuss.circleci.com/u/mohamedgamalali)\
**Replies:** 4\
**Last updated:** [June 30, 2022, 10:47am UTC](https://discuss.circleci.com/t/npm-err-enoent-enoent-no-such-file-or-directory-open-usr-app-package-json-ci-error-but-works-locally/44580 "2022-06-30T10:47:52Z")

</div>

as you see i’m already wrote COPY package\*.json /usr/app/ when i’m try to run docker-compose run bona\_api ls it only returns node\_modules Dockerfile: FROM node:16.3.0-alpine WORKDIR /usr/app COPY package\*.json /usr/ap…

---

## [Cannot access localhost:8080 page when i try to run vuejs app using docker-compose](https://discuss.circleci.com/t/cannot-access-localhost-8080-page-when-i-try-to-run-vuejs-app-using-docker-compose/44490)

<div class="topic-metadata">

**Author:** [@herrouhajar](https://discuss.circleci.com/u/herrouhajar)\
**Replies:** 0\
**Last updated:** [June 20, 2022, 12:50pm UTC](https://discuss.circleci.com/t/cannot-access-localhost-8080-page-when-i-try-to-run-vuejs-app-using-docker-compose/44490 "2022-06-20T12:50:29Z")

</div>

Hi, Im facing an issue with docker-compose, when i try to run vuejs app inside a container. First i build vuejs app using : docker-compose docker-compose run node npm run build -- --mode=iso so a folder ‘dist’ is cre…

---

## [\`npm i\` command suddenly failing in CI](https://discuss.circleci.com/t/npm-i-command-suddenly-failing-in-ci/42940)

<div class="topic-metadata">

**Author:** [@Penspinner](https://discuss.circleci.com/u/Penspinner)\
**Replies:** 1\
**Last updated:** [February 21, 2022, 3:17pm UTC](https://discuss.circleci.com/t/npm-i-command-suddenly-failing-in-ci/42940 "2022-02-21T15:17:14Z")

</div>

Is anyone else’s npm install command suddenly failing in CircleCI? #!/bin/bash -eo pipefail npm i --no-save --prefer-offline --no-audit --cache ~/.npm &\> /dev/null Exited with code exit status 1 CircleCI received exit …

---

## [Did something recently change with npm prepare scripts?](https://discuss.circleci.com/t/did-something-recently-change-with-npm-prepare-scripts/40568)

<div class="topic-metadata">

**Author:** [@karlbecker](https://discuss.circleci.com/u/karlbecker)\
**Replies:** 2\
**Last updated:** [October 29, 2021, 2:56pm UTC](https://discuss.circleci.com/t/did-something-recently-change-with-npm-prepare-scripts/40568 "2021-10-29T14:56:22Z")

</div>

In our NodeJS app (call it our\_app), we have one dependency (call it our\_dependency, one we maintain in a private repo on GitHub) that has a prepare script in its package.json. Here’s a snippet from our\_dependency's pac…

---

## [Tests failing due to node\_modules missing something, but it works once I change anything in package.json](https://discuss.circleci.com/t/tests-failing-due-to-node-modules-missing-something-but-it-works-once-i-change-anything-in-package-json/40621)

<div class="topic-metadata">

**Author:** [@karlbecker](https://discuss.circleci.com/u/karlbecker)\
**Replies:** 0\
**Last updated:** [July 13, 2021, 6:56pm UTC](https://discuss.circleci.com/t/tests-failing-due-to-node-modules-missing-something-but-it-works-once-i-change-anything-in-package-json/40621 "2021-07-13T18:56:47Z")

</div>

I tried posting this in the Caching Dependencies section, but I think I should post it elsewhere, since it continues to happen and I didn’t have an answer there. I could really use some help! In our NodeJS app (call it…

---

## [Deploying to GitHub Pages failed](https://discuss.circleci.com/t/deploying-to-github-pages-failed/39370)

<div class="topic-metadata">

**Author:** [@eransharv](https://discuss.circleci.com/u/eransharv)\
**Replies:** 1\
**Last updated:** [March 11, 2021, 9:34am UTC](https://discuss.circleci.com/t/deploying-to-github-pages-failed/39370 "2021-03-11T09:34:26Z")

</div>

Hi, Everything worked until two days: I commit the code to GitHub, and CircleCI deployed it to Github pages. And that’s how our website was updated. For the last two days, I’m getting this error from the circleCI job: …

---

## [Grpc not caching](https://discuss.circleci.com/t/grpc-not-caching/38510)

<div class="topic-metadata">

**Author:** [@myufa](https://discuss.circleci.com/u/myufa)\
**Replies:** 0\
**Last updated:** [December 15, 2020, 2:52am UTC](https://discuss.circleci.com/t/grpc-not-caching/38510 "2020-12-15T02:52:22Z")

</div>

New to circleci so bare with me :sweat\_smile: Trying to just lint an express app that lives in the backend/core folder of our repo. I implemented the npm caching example to speed up builds but one of our dependencies is…

---

## [Can't install npm package from private github repo](https://discuss.circleci.com/t/cant-install-npm-package-from-private-github-repo/37481)

<div class="topic-metadata">

**Author:** [@Floriferous](https://discuss.circleci.com/u/Floriferous)\
**Replies:** 1\
**Last updated:** [September 23, 2020, 9:07pm UTC](https://discuss.circleci.com/t/cant-install-npm-package-from-private-github-repo/37481 "2020-09-23T21:07:48Z")

</div>

This is a duplicate of an old thread: https://discuss.circleci.com/t/npm-install-private-repo-with-deploy-key/16636. Reviving because it is still an issue with Circle CI. Quite simply, here’s what I’m trying to do: "de…

---

## [429 Too Many Requests - getting packets from npmjs.org is getting blocked](https://discuss.circleci.com/t/429-too-many-requests-getting-packets-from-npmjs-org-is-getting-blocked/34532)

<div class="topic-metadata">

**Author:** [@Bersaelor](https://discuss.circleci.com/u/Bersaelor)\
**Replies:** 2\
**Last updated:** [February 17, 2020, 3:18pm UTC](https://discuss.circleci.com/t/429-too-many-requests-getting-packets-from-npmjs-org-is-getting-blocked/34532 "2020-02-17T15:18:41Z")

</div>

So, during our deployment workflow we need to install babel-cli to be able to run yarn compile. Now npmjs.org seems to block the circleci IP address with errorcode 429, which as far as I understand is due to DDOS preven…

---

## [Package.json dependency uses git and fails](https://discuss.circleci.com/t/package-json-dependency-uses-git-and-fails/34267)

<div class="topic-metadata">

**Author:** [@0dp](https://discuss.circleci.com/u/0dp)\
**Replies:** 1\
**Last updated:** [January 30, 2020, 12:15pm UTC](https://discuss.circleci.com/t/package-json-dependency-uses-git-and-fails/34267 "2020-01-30T12:15:19Z")

</div>

Hi there, Trying to setup my first build environment, and running into an issue. As part of my steps I am installing a global npm package that is required for deployment - run: name: install stencil-cli comman…

---

## [Timeout with npm install](https://discuss.circleci.com/t/timeout-with-npm-install/31035)

<div class="topic-metadata">

**Author:** [@tharnach](https://discuss.circleci.com/u/tharnach)\
**Replies:** 1\
**Last updated:** [June 25, 2019, 3:30pm UTC](https://discuss.circleci.com/t/timeout-with-npm-install/31035 "2019-06-25T15:30:32Z")

</div>

I frequently have npm install timeout during a build. Locally, this install is quick, and when it passes on CircleCI it’s usually under a minute. When it fails, I just rerun the build a few times (4th time was a charm th…

---

## [New npm yarn config](https://discuss.circleci.com/t/new-npm-yarn-config/27591)

<div class="topic-metadata">

**Author:** [@dankohn](https://discuss.circleci.com/u/dankohn)\
**Replies:** 2\
**Last updated:** [January 12, 2019, 12:33pm UTC](https://discuss.circleci.com/t/new-npm-yarn-config/27591 "2019-01-12T12:33:07Z")

</div>

Can you please tell me what I’m doing wrong with https://github.com/cncf/svg-autocrop/blob/master/.circle-ci/config.yml Why does it run npm install instead of yarn install? See the tries on https://circleci.com/gh/cncf…

---

## [Tag filtering specifics](https://discuss.circleci.com/t/tag-filtering-specifics/27100)

<div class="topic-metadata">

**Author:** [@ScottRudiger](https://discuss.circleci.com/u/ScottRudiger)\
**Replies:** 0\
**Last updated:** [December 12, 2018, 3:31pm UTC](https://discuss.circleci.com/t/tag-filtering-specifics/27100 "2018-12-12T15:31:52Z")

</div>

For reference, here is my config version: 2 defaults: &defaults working\_directory: ~/AsyncAF docker: - image: circleci/node:latest jobs: test: \<\<: \*defaults steps: - checkout - restore\_ca…

---

## [Npm install won't run on CircleCI, but works well locally](https://discuss.circleci.com/t/npm-install-wont-run-on-circleci-but-works-well-locally/27046)

<div class="topic-metadata">

**Author:** [@keligijus](https://discuss.circleci.com/u/keligijus)\
**Replies:** 2\
**Last updated:** [December 11, 2018, 5:51am UTC](https://discuss.circleci.com/t/npm-install-wont-run-on-circleci-but-works-well-locally/27046 "2018-12-11T05:51:05Z")

</div>

npm install fails on CircleCI. It works when package-lock.json is deleted, it also works well locally. Local npm v 6.4.1 Local node v 8.9.4 Edit: Temporarily fixed by adding --no-package-lock flag to npm install. #!/…

---

## [Can run \`npm install\` when having a Github repository as a dependency](https://discuss.circleci.com/t/can-run-npm-install-when-having-a-github-repository-as-a-dependency/27065)

<div class="topic-metadata">

**Author:** [@naneri](https://discuss.circleci.com/u/naneri)\
**Replies:** 0\
**Last updated:** [December 11, 2018, 5:23am UTC](https://discuss.circleci.com/t/can-run-npm-install-when-having-a-github-repository-as-a-dependency/27065 "2018-12-11T05:23:33Z")

</div>

I have a dependency in my package.json that uses github repo as a version. When I am running npm install it says Permission denied (publickey) . I cant add a new SSH key as I already added my Bitbucket key to fetch some …

---

## [Error: uncaughtException: Cannot find module 'Joi'](https://discuss.circleci.com/t/error-uncaughtexception-cannot-find-module-joi/24949)

<div class="topic-metadata">

**Author:** [@souravlahoti](https://discuss.circleci.com/u/souravlahoti)\
**Replies:** 5\
**Last updated:** [September 7, 2018, 7:49am UTC](https://discuss.circleci.com/t/error-uncaughtexception-cannot-find-module-joi/24949 "2018-09-07T07:49:39Z")

</div>

This is my config.yml file # Javascript Node CircleCI 2.0 configuration file # # Check https://circleci.com/docs/2.0/language-javascript/ for more details # version: 2 machine: services: - mongodb jobs: build: …

---

## [Npm install fails due to certificate errors](https://discuss.circleci.com/t/npm-install-fails-due-to-certificate-errors/24857)

<div class="topic-metadata">

**Author:** [@janpio](https://discuss.circleci.com/u/janpio)\
**Replies:** 1\
**Last updated:** [September 2, 2018, 7:49pm UTC](https://discuss.circleci.com/t/npm-install-fails-due-to-certificate-errors/24857 "2018-09-02T19:49:44Z")

</div>

One of our tests runs npm install -g gnomon on the command line when gnomon is not already installed. On a macOS machine (macos: xcode: "9.0.0") this currently fails: \[07:11:20\]: Exit status of command 'npm install -g g…

---

## [Network issues when installing npm dependencies](https://discuss.circleci.com/t/network-issues-when-installing-npm-dependencies/23214)

<div class="topic-metadata">

**Author:** [@patocallaghan](https://discuss.circleci.com/u/patocallaghan)\
**Replies:** 17\
**Last updated:** [August 3, 2018, 10:46am UTC](https://discuss.circleci.com/t/network-issues-when-installing-npm-dependencies/23214 "2018-08-03T10:46:25Z")

</div>

It appears since last night none of our builds have been green on Circle due to 500 errors when trying to install npm dependencies. We use yarn to install our dependencies. Is there are any issues that you know about? I …

---

## [Taking advantage of npm ci](https://discuss.circleci.com/t/taking-advantage-of-npm-ci/20734)

<div class="topic-metadata">

**Author:** [@MattiSG](https://discuss.circleci.com/u/MattiSG)\
**Replies:** 7\
**Last updated:** [July 2, 2018, 2:53am UTC](https://discuss.circleci.com/t/taking-advantage-of-npm-ci/20734 "2018-07-02T02:53:29Z")

</div>

npm@5.7.1 added support for npm ci, which supposedly decreases install times significantly. However, when I tried to take advantage of it, it proved impossible. Indeed: npm ci won’t work on default Circle images, as …

---

## [Npm login Fail for private repository](https://discuss.circleci.com/t/npm-login-fail-for-private-repository/22847)

<div class="topic-metadata">

**Author:** [@bhuranideepak82](https://discuss.circleci.com/u/bhuranideepak82)\
**Replies:** 1\
**Last updated:** [June 7, 2018, 7:25pm UTC](https://discuss.circleci.com/t/npm-login-fail-for-private-repository/22847 "2018-06-07T19:25:36Z")

</div>

Hi We have a private npm repository hosted for some of our npm packages(proget). Running below command throws an error. run: name: Login to Proget - mobile component command: echo -e $“$NPM\_USER\\n$NPM\_PASS\\n$NPM\_E…

---

## ["npm install" downgrades package-lock.json links from HTTPS to HTTP](https://discuss.circleci.com/t/npm-install-downgrades-package-lock-json-links-from-https-to-http/22508)

<div class="topic-metadata">

**Author:** [@kevinburke](https://discuss.circleci.com/u/kevinburke)\
**Replies:** 5\
**Last updated:** [May 30, 2018, 3:47am UTC](https://discuss.circleci.com/t/npm-install-downgrades-package-lock-json-links-from-https-to-http/22508 "2018-05-30T03:47:23Z")

</div>

I check in and push a package-lock.json file that contains links to e.g. “https colon slash slash registry dot npmjs dot com.” When I push this file and run “npm install” using NPM 6, the links in the file update to use …

---

## [Failing Builds - Action failed: npm install](https://discuss.circleci.com/t/failing-builds-action-failed-npm-install/22037)

<div class="topic-metadata">

**Author:** [@mgan59](https://discuss.circleci.com/u/mgan59)\
**Replies:** 5\
**Last updated:** [April 28, 2018, 11:12am UTC](https://discuss.circleci.com/t/failing-builds-action-failed-npm-install/22037 "2018-04-28T11:12:32Z")

</div>

Noticed the other day the following Build errors started to come in npm install bash: line 1: npm: command not found npm install returned exit code 127 Action failed: npm install For all builds / Branches, even those…

---

## [Known\_hosts edit fails using local CLI](https://discuss.circleci.com/t/known-hosts-edit-fails-using-local-cli/21407)

<div class="topic-metadata">

**Author:** [@thatneat](https://discuss.circleci.com/u/thatneat)\
**Replies:** 4\
**Last updated:** [April 12, 2018, 12:02am UTC](https://discuss.circleci.com/t/known-hosts-edit-fails-using-local-cli/21407 "2018-04-12T00:02:47Z")

</div>

I need to clone a separate GitHub repo (other than the one checked out by the checkout step) as part of my build process\*. It works in the actual CircleCI environment, but I’m having a known\_hosts issue when I run circle…

---

## [Unable to npm install private npm module using ciricleci 2.0](https://discuss.circleci.com/t/unable-to-npm-install-private-npm-module-using-ciricleci-2-0/20375)

<div class="topic-metadata">

**Author:** [@kongakong](https://discuss.circleci.com/u/kongakong)\
**Replies:** 1\
**Last updated:** [March 1, 2018, 2:05am UTC](https://discuss.circleci.com/t/unable-to-npm-install-private-npm-module-using-ciricleci-2-0/20375 "2018-03-01T02:05:57Z")

</div>

I have this step defined in my test job in circleci 2.0 tests: docker: - image: buildpack-deps:trusty steps: - checkout - run: name: npm secret command: echo "//registry.n…

---

## [ECONNRESET on npm install](https://discuss.circleci.com/t/econnreset-on-npm-install/4793)

<div class="topic-metadata">

**Author:** [@tomw](https://discuss.circleci.com/u/tomw)\
**Replies:** 5\
**Last updated:** [February 10, 2018, 8:19pm UTC](https://discuss.circleci.com/t/econnreset-on-npm-install/4793 "2018-02-10T20:19:30Z")

</div>

Fairly often (but not always), I'm getting the following error on instilling lwip (the Node image processing library): make: Leaving directory \`/home/ubuntu/API/Avenue/node\_modules/lwip/build' npm ERR! Linux 3.13.0-86-…

---

## [Intermittent breaks on npm install](https://discuss.circleci.com/t/intermittent-breaks-on-npm-install/19386)

<div class="topic-metadata">

**Author:** [@joilson-cisne](https://discuss.circleci.com/u/joilson-cisne)\
**Replies:** 0\
**Last updated:** [January 16, 2018, 7:41pm UTC](https://discuss.circleci.com/t/intermittent-breaks-on-npm-install/19386 "2018-01-16T19:41:38Z")

</div>

When running npm install before running my tests I get intermittent failures. npm ERR! path /home/circleci/repo/node\_modules/newrelic/node\_modules/readable-stream/node\_modules/core-util-is npm ERR! code ENOENT npm ERR! …

---

## [Npm can't find \`mkdirp\`](https://discuss.circleci.com/t/npm-cant-find-mkdirp/11340)

<div class="topic-metadata">

**Author:** [@border-buddy](https://discuss.circleci.com/u/border-buddy)\
**Replies:** 1\
**Last updated:** [January 6, 2018, 1:10am UTC](https://discuss.circleci.com/t/npm-cant-find-mkdirp/11340 "2018-01-06T01:10:20Z")

</div>

Our builds started failing on CI all of a sudden with this error message. Previously passing builds are also failing with the same error. Complete stacktrace here: Module build failed: Error: Cannot find module 'm…

[Next page](https://discuss.circleci.com/tag/npm/106.md?match_all_tags=true&page=1&tags%5B%5D=npm)
