Issue with gulp while deploying in Netlify

I’m new to Hugo and Netlify.
I am facing an Issue while deploying in Netlify. Please help
Site : modest-thompson-1f054c.netlify.com
Issue :

1:12:22 PM: > victor-hugo@1.0.0 build /opt/build/repo
1:12:22 PM: > gulp build
1:12:22 PM: [05:12:22]
1:12:22 PM: Requiring external module babel-register
1:12:22 PM: /opt/build/repo/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:180
1:12:22 PM: throw new ReferenceError(messages.get(“pluginUnknown”, plugin, loc, i, dirname));
1:12:22 PM: ^
1:12:22 PM: ReferenceError: Unknown plugin “@babel/plugin-syntax-object-rest-spread” specified in “/opt/build/repo/.babelrc” at 0, attempted to resolve relative to “/opt/build/repo”
1:12:22 PM: at /opt/build/repo/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:180:17
1:12:22 PM: at Array.map ()
1:12:22 PM: at Function.normalisePlugins (/opt/build/repo/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:158:20)
1:12:22 PM: at OptionManager.mergeOptions (/opt/build/repo/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:234:36)
1:12:22 PM: at OptionManager.init (/opt/build/repo/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12)
1:12:22 PM: at compile (/opt/build/repo/node_modules/babel-register/lib/node.js:103:45)
1:12:22 PM: at loader (/opt/build/repo/node_modules/babel-register/lib/node.js:144:14)
1:12:22 PM: at Object.require.extensions. [as .js] (/opt/build/repo/node_modules/babel-register/lib/node.js:154:7)
1:12:22 PM: at Module.load (internal/modules/cjs/loader.js:731:32)
1:12:22 PM: at Function.Module._load (internal/modules/cjs/loader.js:644:12)
1:12:22 PM: npm
1:12:22 PM: ERR! code ELIFECYCLE
1:12:22 PM: npm
1:12:22 PM: ERR! errno 1
1:12:22 PM: npm
1:12:22 PM: ERR! victor-hugo@1.0.0 build: gulp build
1:12:22 PM: npm ERR!
1:12:22 PM: Exit status 1
1:12:22 PM: npm ERR!
1:12:22 PM: npm ERR! Failed at the victor-hugo@1.0.0 build script.
1:12:22 PM: npm
1:12:22 PM: ERR! This is probably not a problem with npm. There is likely additional logging output above.
1:12:22 PM: npm
1:12:22 PM: ERR! A complete log of this run can be found in:
1:12:22 PM: npm
1:12:22 PM: ERR! /opt/buildhome/.npm/_logs/2019-08-10T05_12_22_493Z-debug.log
1:12:22 PM: Skipping functions preparation step: no functions directory set
1:12:22 PM: Caching artifacts
1:12:22 PM: Started saving node modules
1:12:22 PM: Finished saving node modules
1:12:22 PM: Started saving yarn cache
1:12:22 PM: Finished saving yarn cache
1:12:22 PM: Started saving pip cache
1:12:22 PM: Finished saving pip cache
1:12:22 PM: Started saving emacs cask dependencies
1:12:22 PM: Finished saving emacs cask dependencies
1:12:22 PM: Started saving maven dependencies
1:12:22 PM: Finished saving maven dependencies
1:12:22 PM: Started saving boot dependencies
1:12:22 PM: Finished saving boot dependencies
1:12:22 PM: Started saving go dependencies
1:12:22 PM: Finished saving go dependencies
1:12:24 PM: Error running command: Build script returned non-zero exit code: 1
1:12:24 PM: Failing build: Failed to build site
1:12:24 PM: failed during stage ‘building site’: Build script returned non-zero exit code: 1
1:12:25 PM: Finished processing build request in 54.24793842s

Hi @vivekclement! Can you build this site locally? It seems like there are some missing components from your installation that should block building anywhere. I can’t easily tell exactly what is missing (well, I can see that at least @babel/plugin-syntax-object-rest-spread isn’t there, but I imagine there are more), and the usual fix for that is to list them in your dependency file so that they get installed.

This is much easier to troubleshoot locally than in our CI so hopefully you can get a local build working first and then we can go from there in troubleshooting your netlify build (this article has all the steps, once you can build locally: [Common Issue] Debugging site builds)