Error while deploying site

I deployed a repo from GitHub and it is running in glitch.com.But I tried to depoy same repo but got a error.Please help me to fix this

Error:

6:16:13 PM: Build ready to start
6:16:16 PM: build-image version: 9cade8af58c2cf3a17a1e9433d2e979149488837
6:16:16 PM: build-image tag: v3.3.5
6:16:16 PM: buildbot version: 036f37945d6de439a17a554b3ae02e2f8f0f1fb0
6:16:16 PM: Fetching cached dependencies
6:16:17 PM: Failed to fetch cache, continuing with build
6:16:17 PM: Starting to prepare the repo for build
6:16:17 PM: No cached dependencies found. Cloning fresh repo
6:16:17 PM: git clone https://github.com/DEF4ULT-Development/private
6:16:18 PM: Preparing Git Reference refs/heads/glitch
6:16:18 PM: Starting build script
6:16:18 PM: Installing dependencies
6:16:20 PM: Downloading and installing node v11.15.0...
6:16:20 PM: Downloading https://nodejs.org/dist/v11.15.0/node-v11.15.0-linux-x64.tar.xz...
6:16:21 PM:   0
6:16:21 PM: .4%
6:16:21 PM: 
#####                                                                      7.5%
6:16:21 PM: 
##################################################
6:16:21 PM:  70.1%
6:16:21 PM: 
####################################################
6:16:21 PM: #################### 100.0%
6:16:21 PM: Computing checksum with sha256sum
6:16:21 PM: Checksums matched!
6:16:24 PM: Now using node v11.15.0 (npm v6.7.0)
6:16:25 PM: Attempting ruby version 2.6.2, read from environment
6:16:27 PM: Using ruby version 2.6.2
6:16:27 PM: Using PHP version 5.6
6:16:27 PM: Started restoring cached node modules
6:16:27 PM: Finished restoring cached node modules
6:16:28 PM: Found npm version (6.7.0) that doesn't match expected (6.13.7)
6:16:28 PM: Installing npm at version 6.13.7
6:16:37 PM: /opt/buildhome/.nvm/versions/node/v11.15.0/bin/npm -> /opt/buildhome/.nvm/versions/node/v11.15.0/lib/node_modules/npm/bin/npm-cli.js
6:16:37 PM: /opt/buildhome/.nvm/versions/node/v11.15.0/bin/npx -> /opt/buildhome/.nvm/versions/node/v11.15.0/lib/node_modules/npm/bin/npx-cli.js
6:16:38 PM: + npm@6.13.7
6:16:38 PM: added 32 packages from 18 contributors, removed 24 packages and updated 69 packages in 9.131s
6:16:38 PM: NPM installed successfully
6:16:38 PM: Installing NPM modules using NPM version 6.13.7
6:16:53 PM: npm WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/lazystream-a1cc147c/package.json'
6:16:53 PM: npm WARN
6:16:53 PM:  tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/lazystream-a1cc147c/.npmignore'
6:16:53 PM: npm WARN tar
6:16:53 PM:  ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/readable-stream-a9210231/LICENSE'
6:16:53 PM: npm
6:16:53 PM: WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/lazystream-a1cc147c/README.md'
6:16:53 PM: npm
6:16:53 PM: WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/lazystream-a1cc147c/.travis.yml'
6:16:54 PM: npm WARN
6:16:54 PM:  tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/lazystream-a1cc147c/LICENSE-MIT'
6:16:54 PM: npm WARN
6:16:54 PM:  tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/uuid-1cc4915a/lib/v35.js'
6:16:54 PM: npm WARN
6:16:54 PM:  tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/teeny-request-559b537a/build/src/agents.d.ts'
6:16:54 PM: npm WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/teeny-request-559b537a/build/src/index.d.ts'
6:16:54 PM: npm
6:16:54 PM: WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/readable-stream-591c3a76/lib/_stream_transform.js'
6:16:54 PM: npm
6:16:54 PM:  WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/firebase-admin-b872c97c/lib/project-management/project-management-api-request.js'
6:16:54 PM: npm WARN
6:16:54 PM: tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/readable-stream-ac98cf41/lib/internal/streams/stream-browser.js'
6:16:54 PM: npm WARN
6:16:54 PM: tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/readable-stream-ac98cf41/lib/internal/streams/stream.js'
6:16:54 PM: npm
6:16:54 PM: WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/firebase-admin-b872c97c/lib/project-management/project-management.js'
6:16:54 PM: npm WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/google-auth-library-b3c291e6/build/src/crypto/node/crypto.d.ts'
6:16:54 PM: npm WARN tar ENOENT: no such file or directory, lstat '/opt/build/repo/node_modules/.staging/@vimeo/player-b589ddc8/src/lib'
6:16:54 PM: npm
6:16:54 PM: WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/@google-cloud/firestore-2059c5cd/build/protos/firestore_v1beta1_proto_api.js'
6:16:54 PM: npm WARN
6:16:54 PM:  tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/@vimeo/player-b589ddc8/src/player.js'
6:16:54 PM: npm
6:16:54 PM: WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/firebase-tools-193f8da1/lib/commands/database-get.js'
6:16:54 PM: npm WARN
6:16:54 PM:  tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/firebase-tools-193f8da1/lib/commands/database-instances-create.js'
6:16:54 PM: npm
6:16:54 PM: WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/firebase-tools-193f8da1/lib/commands/database-instances-list.js'
6:16:54 PM: npm
6:16:54 PM: WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/firebase-tools-193f8da1/lib/commands/database-profile.js'
6:16:54 PM: npm
6:16:54 PM: WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/firebase-tools-193f8da1/lib/commands/database-push.js'
6:16:54 PM: npm WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/sanitize-html-9a257702/package.json'
6:16:54 PM: npm
6:16:54 PM: WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/firebase-tools-193f8da1/lib/commands/database-remove.js'
6:16:54 PM: npm
6:16:54 PM:  WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/sanitize-html-9a257702/CHANGELOG.md'
6:16:54 PM: npm WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/firebase-tools-193f8da1/lib/commands/database-rules-canary.js'
6:16:54 PM: npm
6:16:54 PM: WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/firebase-admin-b872c97c/lib/auth/tenant-manager.js'
6:16:54 PM: npm WARN
6:16:54 PM:  tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/firebase-tools-193f8da1/lib/commands/database-rules-get.js'
6:16:54 PM: npm
6:16:54 PM: WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/sanitize-html-9a257702/README.md'
6:16:54 PM: npm WARN
6:16:54 PM:  tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/firebase-admin-b872c97c/lib/auth/tenant.js'
6:16:54 PM: npm WARN
6:16:54 PM: tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/firebase-tools-193f8da1/lib/commands/database-rules-list.js'
6:16:54 PM: npm
6:16:54 PM: WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/firebase-admin-b872c97c/lib/auth/token-generator.js'
6:16:54 PM: npm WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/firebase-tools-193f8da1/lib/commands/database-rules-release.js'
6:16:54 PM: npm
6:16:54 PM: WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/firebase-tools-193f8da1/lib/commands/database-rules-stage.js'
6:16:54 PM: npm
6:16:54 PM: WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/firebase-admin-b872c97c/lib/auth/token-verifier.js'
6:16:54 PM: npm
6:16:54 PM: WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/firebase-tools-193f8da1/lib/commands/database-set.js'
6:16:54 PM: npm WARN
6:16:54 PM:  tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/firebase-tools-193f8da1/lib/commands/database-settings-get.js'
6:16:54 PM: npm WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/firebase-admin-b872c97c/lib/auth/user-import-builder.js'
6:16:54 PM: npm
6:16:54 PM: WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/firebase-tools-193f8da1/lib/commands/database-settings-set.js'
6:16:54 PM: npm
6:16:54 PM:  WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/@firebase/database-ef217c17/dist/index.cjs.js.map'
6:16:54 PM: npm WARN
6:16:54 PM: tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/firebase-admin-b872c97c/lib/auth/user-record.js'
6:16:54 PM: npm WARN tar
6:16:54 PM:  ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/firebase-tools-193f8da1/lib/commands/database-update.js'
6:16:54 PM: npm WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/firebase-admin-b872c97c/lib/utils/validator.js'
6:16:54 PM: npm WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/google-gax-af492471/build/src/operationsClient.js'
6:16:54 PM: npm WARN
6:16:54 PM:  tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/firebase-tools-193f8da1/lib/emulator/databaseEmulator.js'
6:16:54 PM: npm WARN
6:16:54 PM:  tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/firebase-tools-193f8da1/lib/commands/deploy.js'
6:16:54 PM: npm WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/firebase-tools-193f8da1/lib/appdistribution/distribution.js'
6:16:54 PM: npm
6:16:54 PM: WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/firebase-tools-193f8da1/lib/emulator/download.js'
6:16:54 PM: npm WARN
6:16:54 PM:  tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/firebase-tools-193f8da1/lib/emulator/emulatorLogger.js'
6:16:54 PM: npm WARN
6:16:54 PM:  tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/@google-cloud/pubsub-0977ae3a/build/src/publisher/publish-error.js'
6:16:54 PM: npm
6:16:54 PM: WARN tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/@google-cloud/pubsub-0977ae3a/build/src/v1/publisher_client.js'
6:16:55 PM: npm
6:16:55 PM:  WARN discord.js@11.5.1 requires a peer of @discordjs/uws@^10.149.0 but none is installed. You must install peer dependencies yourself.
6:16:55 PM: npm WARN @u-wave/react-vimeo@0.8.1 requires a peer of react@^0.14.0 || ^15.0.0 || ^16.0.0 but none is installed. You must install peer dependencies yourself.
6:16:55 PM: npm WARN connect-session-firebase@5.13.0 requires a peer of firebase-admin@~5.13.0 but none is installed. You must install peer dependencies yourself.
6:16:55 PM: npm WARN enmap@5.2.4 requires a peer of better-sqlite3@^5.4.1 but none is installed. You must install peer dependencies yourself.
6:16:55 PM: npm
6:16:55 PM:  WARN marked-terminal@3.3.0 requires a peer of marked@^0.4.0 || ^0.5.0 || ^0.6.0 || ^0.7.0 but none is installed. You must install peer dependencies yourself.
6:16:55 PM: npm WARN bod@2.0.0 No repository field.
6:16:55 PM: npm ERR! code
6:16:55 PM:  ENOENT
6:16:55 PM: npm
6:16:55 PM: ERR! syscall rename
6:16:55 PM: npm ERR! path /opt/build/repo/node_modules/.staging/webshot-c4d8d42b/node_modules/ajv
6:16:55 PM: npm ERR! dest /opt/build/repo/node_modules/.staging/ajv-cd91b679
6:16:55 PM: npm ERR! errno -2
6:16:55 PM: npm ERR!
6:16:55 PM:  enoent ENOENT: no such file or directory, rename '/opt/build/repo/node_modules/.staging/webshot-c4d8d42b/node_modules/ajv' -> '/opt/build/repo/node_modules/.staging/ajv-cd91b679'
6:16:55 PM: failed during stage 'building site': Build script returned non-zero exit code: 1
6:16:55 PM: npm
6:16:55 PM:  ERR! enoent This is related to npm not being able to find a file.
6:16:55 PM: npm
6:16:55 PM:  ERR! enoent
6:16:55 PM: Shutting down logging, 7 messages pending

Hey @DEF4ULT-Development,

It looks like you need to check your build settings, a bit like this. This Netlify guide should help but feel free to share your project for specific help if you need it.

Couldn’t find the solution

Hi, @DEF4ULT-Development, and welcome to our Netlify community site.

My best guess here is that there some issue with the node modules installed at Netlify. Often, deleting package-lock.json then reinstalling the dependencies will resolve the issue.

Would you please send us a link to the deploy logs at Netlify and we’ll be happy to take a look to see if we see evidence of this?