I’m trying to upload a website to Netlify. Shows an error. I need help, please
1:04:11 PM: Build ready to start
1:04:13 PM: build-image version: a49edbc55fc722f80f6b85963a5060f8d043a844 (focal)
1:04:13 PM: build-image tag: v4.8.1
1:04:13 PM: buildbot version: f89dd42aa70d76d1da992dc3fa004a4c745208bc
1:04:13 PM: Fetching cached dependencies
1:04:13 PM: Failed to fetch cache, continuing with build
1:04:13 PM: Starting to prepare the repo for build
1:04:13 PM: No cached dependencies found. Cloning fresh repo
1:04:13 PM: git clone GitHub - KudenikovNS/gatsby-first-project
1:04:13 PM: Preparing Git Reference refs/heads/main
1:04:14 PM: Parsing package.json dependencies
1:04:15 PM: Starting build script
1:04:15 PM: Installing dependencies
1:04:15 PM: Python version set to 2.7
1:04:16 PM: v16.15.1 is already installed.
1:04:16 PM: Now using node v16.15.1 (npm v8.11.0)
1:04:16 PM: Started restoring cached build plugins
1:04:16 PM: Finished restoring cached build plugins
1:04:16 PM: Attempting ruby version 2.7.2, read from environment
1:04:17 PM: Using ruby version 2.7.2
1:04:18 PM: Using PHP version 8.0
1:04:18 PM: No npm workspaces detected
1:04:18 PM: Started restoring cached node modules
1:04:18 PM: Finished restoring cached node modules
1:04:18 PM: Installing NPM modules using NPM version 8.11.0
1:04:19 PM: npm WARN config tmp This setting is no longer used. npm stores temporary files in a special
1:04:19 PM: npm WARN config location in the cache, and they are managed by
1:04:19 PM: npm WARN config cacache
.
1:04:19 PM: npm WARN config tmp This setting is no longer used. npm stores temporary files in a special
1:04:19 PM: npm WARN config location in the cache, and they are managed by
1:04:19 PM: npm WARN config cacache
.
1:04:21 PM: npm WARN ERESOLVE overriding peer dependency
1:04:21 PM: npm WARN While resolving: react-side-effect@2.1.1
1:04:21 PM: npm WARN Found: react@18.2.0
1:04:21 PM: npm WARN node_modules/react
1:04:21 PM: npm WARN react@“^18.1.0” from the root project
1:04:21 PM: npm WARN 9 more (@gatsbyjs/reach-router, gatsby, gatsby-link, …)
1:04:21 PM: npm WARN
1:04:21 PM: npm WARN Could not resolve dependency:
1:04:21 PM: npm WARN peer react@“^16.3.0 || ^17.0.0” from react-side-effect@2.1.1
1:04:21 PM: npm WARN node_modules/react-helmet/node_modules/react-side-effect
1:04:21 PM: npm WARN react-side-effect@“^2.1.0” from react-helmet@6.1.0
1:04:21 PM: npm WARN node_modules/react-helmet
1:04:21 PM: npm WARN
1:04:21 PM: npm WARN Conflicting peer dependency: react@17.0.2
1:04:21 PM: npm WARN node_modules/react
1:04:21 PM: npm WARN peer react@“^16.3.0 || ^17.0.0” from react-side-effect@2.1.1
1:04:21 PM: npm WARN node_modules/react-helmet/node_modules/react-side-effect
1:04:21 PM: npm WARN react-side-effect@“^2.1.0” from react-helmet@6.1.0
1:04:21 PM: npm WARN node_modules/react-helmet
1:04:50 PM: npm ERR! code E401
1:04:50 PM: npm ERR! Unable to authenticate, your authentication token seems to be invalid.
1:04:50 PM: npm ERR! To correct this please trying logging in again with:
1:04:50 PM: npm ERR! npm login
1:04:50 PM: npm ERR! A complete log of this run can be found in:
1:04:50 PM: Creating deploy upload records
1:04:50 PM: npm ERR! /opt/buildhome/.npm/_logs/2022-06-22T09_04_19_448Z-debug-0.log
1:04:50 PM: Error during NPM install
1:04:50 PM: Build was terminated: Build script returned non-zero exit code: 1
1:04:50 PM: Failing build: Failed to build site
1:04:50 PM: Failed during stage ‘building site’: Build script returned non-zero exit code: 1 (Search results for '"non-zero exit code: 1"' - Netlify Support Forums)
1:04:50 PM: Finished processing build request in 37.71039235s