Deploy Preview failing - npm outage

I’m trying to run a deploy preview as a result of a pull request for:
elegant-varahamihira-72d24a

and I’m receiving the following error:

11:03:15 AM: Installing NPM modules using NPM version 6.14.4
11:03:20 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/@hapi/address-00bd30ca/lib/tlds.js’
11:03:21 AM: npm ERR! code E404
11:03:21 AM: npm ERR! 404 Not Found - GET https://registry.npmjs.org/@nodelib%2Ffs.stat - Not found
11:03:21 AM: npm ERR! 404
11:03:21 AM: npm ERR! 404 ‘@nodelib/fs.stat@1.1.3’ is not in the npm registry.

This is a bit odd as it can be installed and built locally, is there a problem with Netlify’s connection to npm? I’ve tried a cache clear retry but I get the same problem.

Full build log:

11:03:08 AM: Build ready to start
11:03:09 AM: build-image version: b0258b965567defc4a2d7e2f2dec2e00c8f73ad6
11:03:09 AM: build-image tag: v3.4.1
11:03:09 AM: buildbot version: 4c73738fafb40608518be6837f4675455e8cfe64
11:03:10 AM: Fetching cached dependencies
11:03:10 AM: Starting to download cache of 254.8KB
11:03:10 AM: Finished downloading cache in 79.720404ms
11:03:10 AM: Starting to extract cache
11:03:10 AM: Failed to fetch cache, continuing with build
11:03:10 AM: Starting to prepare the repo for build
11:03:10 AM: No cached dependencies found. Cloning fresh repo
11:03:10 AM: git clone https://github.com/Leadent/appointment-booker-frontend
11:03:11 AM: Preparing Git Reference pull/1/head
11:03:12 AM: Starting build script
11:03:12 AM: Installing dependencies
11:03:12 AM: Python version set to 2.7
11:03:13 AM: v12.18.0 is already installed.
11:03:14 AM: Now using node v12.18.0 (npm v6.14.4)
11:03:14 AM: Started restoring cached build plugins
11:03:14 AM: Finished restoring cached build plugins
11:03:14 AM: Attempting ruby version 2.7.1, read from environment
11:03:15 AM: Using ruby version 2.7.1
11:03:15 AM: Using PHP version 5.6
11:03:15 AM: 5.2 is already installed.
11:03:15 AM: Using Swift version 5.2
11:03:15 AM: Started restoring cached node modules
11:03:15 AM: Finished restoring cached node modules
11:03:15 AM: Installing NPM modules using NPM version 6.14.4
11:03:20 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/@hapi/address-00bd30ca/lib/tlds.js’
11:03:21 AM: npm ERR! code E404
11:03:21 AM: npm ERR! 404 Not Found - GET https://registry.npmjs.org/@nodelib%2Ffs.stat - Not found
11:03:21 AM: npm ERR! 404
11:03:21 AM: npm ERR! 404 ‘@nodelib/fs.stat@1.1.3’ is not in the npm registry.
11:03:21 AM: npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
11:03:21 AM: npm ERR! 404 It was specified as a dependency of ‘repo’
11:03:21 AM: npm ERR! 404
11:03:21 AM: npm ERR! 404 Note that you can also install from a
11:03:21 AM: npm ERR! 404 tarball, folder, http url, or git url.
11:03:22 AM: npm ERR! A complete log of this run can be found in:
11:03:22 AM: npm ERR! /opt/buildhome/.npm/_logs/2020-08-06T10_03_21_096Z-debug.log
11:03:22 AM: Error during NPM install
11:03:22 AM: Error running command: Build script returned non-zero exit code: 1
11:03:22 AM: Failing build: Failed to build site
11:03:22 AM: Failed during stage ‘building site’: Build script returned non-zero exit code: 1
11:03:22 AM: Finished processing build request in 12.693468091s

I’ve tried re-running this again and output is error is different (without any changes to the code)

11:12:57 AM: Build ready to start
11:12:59 AM: build-image version: b0258b965567defc4a2d7e2f2dec2e00c8f73ad6
11:12:59 AM: build-image tag: v3.4.1
11:12:59 AM: buildbot version: 4c73738fafb40608518be6837f4675455e8cfe64
11:12:59 AM: Fetching cached dependencies
11:12:59 AM: Starting to download cache of 254.8KB
11:12:59 AM: Finished downloading cache in 109.44178ms
11:12:59 AM: Starting to extract cache
11:12:59 AM: Failed to fetch cache, continuing with build
11:12:59 AM: Starting to prepare the repo for build
11:12:59 AM: No cached dependencies found. Cloning fresh repo
11:12:59 AM: git clone https://github.com/Leadent/appointment-booker-frontend
11:13:00 AM: Preparing Git Reference pull/1/head
11:13:02 AM: Starting build script
11:13:02 AM: Installing dependencies
11:13:02 AM: Python version set to 2.7
11:13:03 AM: v12.18.0 is already installed.
11:13:03 AM: Now using node v12.18.0 (npm v6.14.4)
11:13:03 AM: Started restoring cached build plugins
11:13:03 AM: Finished restoring cached build plugins
11:13:04 AM: Attempting ruby version 2.7.1, read from environment
11:13:05 AM: Using ruby version 2.7.1
11:13:05 AM: Using PHP version 5.6
11:13:05 AM: 5.2 is already installed.
11:13:05 AM: Using Swift version 5.2
11:13:05 AM: Started restoring cached node modules
11:13:05 AM: Finished restoring cached node modules
11:13:06 AM: Installing NPM modules using NPM version 6.14.4
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/vuex-3af48d44/dist/vuex.esm-browser.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/@hapi/hoek-5d499c8b/lib/index.d.ts’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/eslint-8e85d10d/lib/rules/array-bracket-newline.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/eslint-8e85d10d/lib/rules/array-bracket-spacing.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/eslint-8e85d10d/lib/rules/array-callback-return.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/@babel/parser-4551b83e/package.json’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/@babel/parser-4551b83e/lib/index.js.map’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/buefy-38628556/dist/buefy.esm.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/eslint-plugin-html-4d96a38e/src/tests/fixtures/cdata.xhtml’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/eslint-plugin-html-4d96a38e/src/tests/fixtures/self-closing-tags.xhtml’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/ar-sa.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/ar-tn.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/@hapi/joi-34d44279/lib/types/string/ip.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/ar-tn.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/ar.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/@hapi/joi-34d44279/lib/types/string/rfc3986.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/ar.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/lib/duration/as.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/az.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/@hapi/joi-34d44279/lib/types/any/settings.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/az.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/@hapi/joi-34d44279/lib/types/string/uri.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/be.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/be.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/bg.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/bg.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/bm.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/bm.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/bn.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/bn.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/bo.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/bo.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/br.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/br.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/bs.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/bs.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/lib/duration/bubble.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/ca.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/ca.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/lib/moment/calendar.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/lib/duration/clone.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/lib/moment/clone.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/lib/utils/compare-arrays.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/lib/moment/compare.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/lib/units/constants.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/prettier-76da3a37/doc.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/lib/duration/constructor.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/lib/moment/constructor.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/lib/duration/create.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/lib/moment/creation-data.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/cs.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/cs.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/cv.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/cv.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/cy.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/cy.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/da.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/da.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/lib/units/day-of-month.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/lib/units/day-of-week.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/lib/units/day-of-year.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/de-at.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/de-at.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/de-ch.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/de-ch.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/de.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/de.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/lib/utils/defaults.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/lib/utils/deprecate.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/lib/moment/diff.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/lib/duration/duration.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/dv.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/dv.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/el.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/el.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/en-au.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/en-au.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/en-ca.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/en-ca.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/en-gb.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/en-gb.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/en-ie.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/en-ie.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/en-il.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/en-il.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/en-in.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/en-in.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/en-nz.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/en-nz.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/en-sg.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/en-sg.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/eo.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/eo.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/lib/units/era.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/es-do.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/es-do.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/es-us.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/es-us.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/es.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/es.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/et.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/et.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/eu.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/eu.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/lib/utils/extend.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/fa.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/fa.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/fi.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/fi.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/fil.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/fil.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/fo.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/fo.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/lib/moment/format.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/fr-ca.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/fr-ca.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/fr-ch.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/fr-ch.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/fr.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/fr.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/lib/moment/from.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/fy.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/fy.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/ga.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/sass-b2d5609c/sass.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/ga.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/sass-b2d5609c/package.json’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/gd.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/sass-b2d5609c/README.md’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/gd.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/lib/moment/get-set.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/lib/duration/get.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/gl.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/gl.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/gom-deva.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/gom-deva.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/gom-latn.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/gom-latn.js’
11:13:12 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/gu.js’

… truncating so this fits

‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/lib/units/week.js’
11:13:13 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/x-pseudo.js’
11:13:13 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/x-pseudo.js’
11:13:13 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/lib/units/year.js’
11:13:13 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/yo.js’
11:13:13 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/yo.js’
11:13:13 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/lib/utils/zero-fill.js’
11:13:13 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/zh-cn.js’
11:13:13 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/zh-cn.js’
11:13:13 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/zh-hk.js’
11:13:13 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/zh-hk.js’
11:13:13 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/zh-mo.js’
11:13:13 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/zh-mo.js’
11:13:13 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/dist/locale/zh-tw.js’
11:13:13 AM: npm WARN tar ENOENT: no such file or directory, open ‘/opt/build/repo/node_modules/.staging/moment-052173c4/src/locale/zh-tw.js’
11:13:13 AM: npm ERR! code E404
11:13:13 AM: npm ERR! 404 Not Found - GET https://registry.npmjs.org/@vue/test-utils/-/test-utils-1.0.3.tgz
11:13:13 AM: npm ERR! 404
11:13:13 AM: npm ERR! 404 ‘@vue/test-utils@1.0.3’ is not in the npm registry.
11:13:13 AM: npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
11:13:13 AM: npm ERR! 404 It was specified as a dependency of ‘repo’
11:13:13 AM: npm ERR! 404
11:13:13 AM: npm ERR! 404 Note that you can also install from a
11:13:13 AM: npm ERR! 404 tarball, folder, http url, or git url.
11:13:15 AM: npm ERR! A complete log of this run can be found in:
11:13:15 AM: npm ERR! /opt/buildhome/.npm/_logs/2020-08-06T10_13_14_000Z-debug.log
11:13:15 AM: Error during NPM install
11:13:15 AM: Error running command: Build script returned non-zero exit code: 1
11:13:15 AM: Failing build: Failed to build site
11:13:15 AM: Failed during stage ‘building site’: Build script returned non-zero exit code: 1
11:13:15 AM: Finished processing build request in 16.89811633s

I’m getting something very similar i.e.

  • errors like npm WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/react-eab2ccb2/cjs/react.production.min.js'
  • failures to find npm packages
  • different instances of above failures on subsequent deploy attempts with same code

I was only trying to deploy starting about 20 mins ago.

Thanks for posting @mikemoraned
I suspect it’s related to this: https://status.npmjs.org/incidents/cksjqc1w11v5?u=clfvn2m9yb5p

Thanks @ross.coundon !

I’m still getting errors on a new build right now. However, this is annoying but not urgent, so will try again later.

My build is now working, NPM reporting their issue is fixed, hopefully you’re good too.

yup, mines working now too! thanks.

i was just about to comment that this is very likely not a netlify problem but related to npm’s outage - but you smart folks figured that out yourselves!

Always a good idea to clear cache & deploy after something like this occurs, just so you don’t have any corrupted packages causing hard to debug problems :+1: