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 haven’t seen anything on twitter or the npm status page.
We are having a similar issue: npm install is timing out after 10 minutes in over 50% of the cases. Not much on the npm status site, is this a specific issue between circle & npm?
We’re having the same issues when running npm install in docker based on the node:latest image:
Step 1/6 : FROM node:latest
latest: Pulling from library/node
Digest: <>
Status: Downloaded newer image for node:latest
---> <>
Step 2/6 : COPY package.json .
---> <>
Step 3/6 : RUN npm install
---> Running in <>
Too long with no output (exceeded 10m0s)
This started a day or so ago very rarely but its happening all the time this morning
@pjaybell same here. This started happening for us yesterday and we haven’t had a single green build since then. It’s probably also worth mentioning I use another CI provider for redundancy and that is working okay.
Thanks for sharing this information. We’re actively investigating but don’t have a clear answer as to what is causing the errors right now. We’ll update here when we know more.
We are in the same boat. This is 24 hours that we cannot deploy to staging and production. This looks like a “minor” issue on the status page, but I am pretty sure a bunch of us are shut down. Can we please get
Same here, we just wrote a script to keep retrying npm install.
To use: ./script.sh ~/path/to/package.json
#!/bin/sh
####### README ######
# This script exists because in CircleCi npm install was timing out.
# If a job in CircleCi doesn't have stdout in 10 minutes, CircleCi will fail the build
# This will retry npm install 5 times, waiting 5 minutes each time for npm install to finish
# Hopefully this will reduce the amount of builds that fail because of npm install issues (reduce flakiness)
####### README ######
DIR=$1
x=1
while [ $x -le 5 ]
do
cd $DIR
# CircleCi will timeout if theres no standard output for 10 minute, so we are echo to keep CircleCi subprocess alive
echo "Trying to npm install in $DIR... This cmd will timeout in 5 minutes."
# This waits up to 5 minutes to npm install, but if npm install completes early we break out of the while loop
timeout 300 npm install && break
# This just adds one to x. We try to repeat npm install 5 times.
x=$(( $x + 1 ))
done