Hello,
My gatsby site (friendly-beaver-5ec405 on Netlify) is building locally but it fails on Netlify with multiple “npm WARN tar ENOENT: no such file or directory”
This is the package.json:
...
"scripts": {
"build": "gatsby build",
"develop": "gatsby develop",
"start": "npm run develop",
"prettier": "prettier --write **/*.{md,css,scss,yaml,yml,ts}",
"lint": "eslint src/**/*.{js,jsx}"
},
"dependencies": {
"@fortawesome/fontawesome-pro": "^5.14.0",
"@fortawesome/fontawesome-svg-core": "^1.2.30",
"@fortawesome/free-solid-svg-icons": "^5.14.0",
"@fortawesome/pro-duotone-svg-icons": "^5.14.0",
"@fortawesome/pro-light-svg-icons": "^5.14.0",
"@fortawesome/pro-regular-svg-icons": "^5.14.0",
"@fortawesome/pro-solid-svg-icons": "^5.14.0",
"@fortawesome/react-fontawesome": "^0.1.11",
"gatsby": "^2.3.3",
"gatsby-image": "^2.2.24",
"gatsby-plugin-ffmpeg": "^0.3.1",
"gatsby-plugin-manifest": "^2.2.20",
"gatsby-plugin-netlify-cms": "^4.1.25",
"gatsby-plugin-offline": "^3.0.11",
"gatsby-plugin-postcss": "^2.3.11",
"gatsby-plugin-prefetch-google-fonts": "^1.4.3",
"gatsby-plugin-react-helmet": "^3.1.10",
"gatsby-plugin-sharp": "^2.2.28",
"gatsby-plugin-sitemap": "^2.2.16",
"gatsby-plugin-styled-components": "^3.1.8",
"gatsby-plugin-transition-link": "^1.20.2",
"gatsby-remark-images": "^3.1.25",
"gatsby-remark-lazy-load": "^1.0.2",
"gatsby-remark-prismjs": "^3.3.17",
"gatsby-remark-relative-images": "^0.2.3",
"gatsby-source-filesystem": "^2.0.28",
"gatsby-transformer-ffmpeg": "^0.3.8",
"gatsby-transformer-json": "^2.1.11",
"gatsby-transformer-remark": "^2.6.27",
"gatsby-transformer-sharp": "^2.2.20",
"gatsby-video": "^0.2.0",
"gsap": "^3.5.1",
"lazysizes": "^5.1.2",
"netlify-cms-app": "^2.9.7",
"prismjs": "^1.17.1",
"react": "^16.8.6",
"react-awesome-reveal": "^3.0.0",
"react-dom": "^16.8.6",
"react-helmet": "^5.2.1",
"react-parallax": "^3.0.3",
"react-slick": "^0.27.10",
"react-spring": "^8.0.27",
"react-typing-animation": "^1.6.2",
"smooth-scroll": "^16.1.3",
"styled-components": "^4.4.0",
"styled-icons": "^8.4.2",
"styled-media-query": "^2.1.2"
},
"devDependencies": {
"babel-eslint": "^10.0.3",
"prettier": "^1.18.2",
"tailwindcss": "^1.7.3"
}
And this is the deploy log (I had to remove parts of it because it was too long to post it here):
12:39:56 PM: build-image version: b0258b965567defc4a2d7e2f2dec2e00c8f73ad6
12:39:56 PM: build-image tag: v3.4.1
12:39:56 PM: buildbot version: 8c957a6d09a03023cea4239847cc73a9cb64eeb7
12:39:56 PM: Fetching cached dependencies
12:39:56 PM: Failed to fetch cache, continuing with build
12:39:56 PM: Starting to prepare the repo for build
12:39:57 PM: No cached dependencies found. Cloning fresh repo
12:39:57 PM: git clone https://github.com/Estebank94/digital-thinking
12:39:59 PM: Preparing Git Reference refs/heads/master
12:40:01 PM: Different publish path detected, going to use the one specified in the Netlify configuration file: 'public' versus 'public/' in the Netlify UI
12:40:01 PM: Starting build script
12:40:01 PM: Installing dependencies
12:40:01 PM: Python version set to 2.7
12:40:03 PM: v12.18.0 is already installed.
12:40:03 PM: Now using node v12.18.0 (npm v6.14.4)
12:40:03 PM: Started restoring cached build plugins
12:40:03 PM: Finished restoring cached build plugins
12:40:04 PM: Attempting ruby version 2.7.1, read from environment
12:40:05 PM: Using ruby version 2.7.1
12:40:06 PM: Using PHP version 5.6
12:40:06 PM: 5.2 is already installed.
12:40:06 PM: Using Swift version 5.2
12:40:06 PM: Started restoring cached node modules
12:40:06 PM: Finished restoring cached node modules
12:40:06 PM: Installing NPM modules using NPM version 6.14.4
12:40:21 PM: npm WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/react-spring-f5f0881b/konva.js'
12:40:21 PM: npm WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/gatsby-image-1cbedf2a/withIEPolyfill/index.d.ts'
12:40:21 PM: npm WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/styled-components-c1c1797b/dist/styled-components.browser.cjs.js.map'
12:40:21 PM: npm WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/gsap-3acd6ba0/CSSRulePlugin.js'
12:40:21 PM: npm WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/@babel/parser-4551b83e/package.json'
12:40:21 PM: npm WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/@babel/parser-4551b83e/lib/index.js.map'
12:40:21 PM: npm WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/prismjs-230f2439/themes/prism-okaidia.css'
12:40:21 PM: npm WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/react-awesome-reveal-e0d45a73/dist/react-awesome-reveal.esm.js'
12:40:21 PM: npm WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/gatsby-cli-15a76b64/lib/util/ensure-windows-drive-letter-is-uppercase.js'
12:40:21 PM: npm WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/prismjs-230f2439/themes/prism-solarizedlight.css'
12:40:21 PM: npm WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/prismjs-230f2439/themes/prism-tomorrow.css'
12:40:21 PM: npm WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/react-slick-e32e04a0/lib/slider.js'
12:40:21 PM: npm WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/react-helmet-c7528c7e/test/test.js'
12:40:21 PM: npm WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/react-slick-e32e04a0/lib/track.js'
12:40:21 PM: npm WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/prismjs-230f2439/themes/prism-twilight.css'
12:40:21 PM: npm WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/gatsby-cli-15a76b64/lib/reporter/redux/index.js'
12:40:21 PM: npm WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/prismjs-230f2439/themes/prism.css'
12:40:21 PM: npm WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/gatsby-cli-15a76b64/lib/reporter/redux/internal-actions.js'
12:40:21 PM: npm WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/gatsby-cli-15a76b64/lib/util/is-tty.js'
12:40:21 PM: npm WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/gatsby-cli-15a76b64/lib/reporter/loggers/ink/components/messages.js'
'/opt/build/repo/node_modules/.staging/styled-icons-114c7100/material/SaveAlt'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/octicons/Saved'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/octicons/Saved'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/remix-fill/Scan'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/remix-line/Scan'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/remix-fill/Scan'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/remix-line/Scan'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/remix-fill/Scan2'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/remix-line/Scan2'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/remix-fill/Scan2'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/remix-line/Scan2'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/material/Scanner'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/material/Scanner'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/material/ScatterPlot'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/material/ScatterPlot'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/evil/ScFacebook'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/evil/ScFacebook'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/evil/ScGithub'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/evil/ScGithub'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/evil/ScGooglePlus'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/evil/ScGooglePlus'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/material/Schedule'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/material/Schedule'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/fa-brands/Schlix'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/fa-brands/Schlix'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/boxicons-solid/School'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/fa-solid/School'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/material/School'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/boxicons-solid/School'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/fa-solid/School'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/material/School'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/evil/ScInstagram'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/evil/ScInstagram'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/feather/Scissors'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/icomoon/Scissors'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/remix-fill/Scissors'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/remix-line/Scissors'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/typicons/Scissors'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/feather/Scissors'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/icomoon/Scissors'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/remix-fill/Scissors'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/remix-line/Scissors'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/typicons/Scissors'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/remix-fill/Scissors2'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/remix-line/Scissors2'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/remix-fill/Scissors2'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/remix-line/Scissors2'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/remix-fill/ScissorsCut'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/remix-line/ScissorsCut'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/remix-fill/ScissorsCut'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/remix-line/ScissorsCut'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/typicons/ScissorsOutline'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/typicons/ScissorsOutline'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/evil/ScLinkedin'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/evil/ScLinkedin'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/evil/ScOdnoklassniki'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/evil/ScOdnoklassniki'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/material/Score'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/material/Score'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/evil/ScPinterest'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/evil/ScPinterest'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/octicons/ScreenFull'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/octicons/ScreenFull'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/material/ScreenLockLandscape'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/material/ScreenLockLandscape'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/material/ScreenLockPortrait'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/material/ScreenLockPortrait'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/material/ScreenLockRotation'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/material/ScreenLockRotation'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/octicons/ScreenNormal'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/octicons/ScreenNormal'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/material/ScreenRotation'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/material/ScreenRotation'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/material/ScreenShare'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/material/ScreenShare'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/remix-fill/Screenshot'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/remix-line/Screenshot'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/styled-icons-114c7100/remix-fill/Screenshot'
12:40:27 PM: npm WARN tar ENOENT: no such file or directory, lstat
12:40:37 PM: npm ERR! A complete log of this run can be found in:
...
12:40:37 PM: npm ERR! /opt/buildhome/.npm/_logs/2020-09-14T15_40_29_738Z-debug.log
12:40:37 PM: Error during NPM install
12:40:37 PM: Error running command: Build script returned non-zero exit code: 1
12:40:37 PM: Failing build: Failed to build site
12:40:37 PM: Finished processing build request in 40.855404828s```