How to deploy the website?

6:13:51 PM: Build ready to start
6:13:52 PM: build-image version: 53b83b6bede2920f236b25b6f5a95334320dc849
6:13:52 PM: build-image tag: v3.6.0
6:13:52 PM: buildbot version: 8ae026ef4905d9174e416775c6b64aa19950569b
6:13:53 PM: Fetching cached dependencies
6:13:53 PM: Failed to fetch cache, continuing with build
6:13:53 PM: Starting to prepare the repo for build
6:13:53 PM: No cached dependencies found. Cloning fresh repo
6:13:53 PM: git clone git@bitbucket.org:designvertica/lucrative
6:13:55 PM: Preparing Git Reference refs/heads/master
6:13:56 PM: Starting build script
6:13:57 PM: Installing dependencies
6:13:57 PM: Python version set to 2.7
6:13:58 PM: v12.18.0 is already installed.
6:13:59 PM: Now using node v12.18.0 (npm v6.14.4)
6:13:59 PM: Started restoring cached build plugins
6:13:59 PM: Finished restoring cached build plugins
6:13:59 PM: Attempting ruby version 2.7.1, read from environment
6:14:01 PM: Using ruby version 2.7.1
6:14:01 PM: Using PHP version 5.6
6:14:01 PM: Started restoring cached go cache
6:14:01 PM: Finished restoring cached go cache
6:14:01 PM: go version go1.14.4 linux/amd64
6:14:01 PM: go version go1.14.4 linux/amd64
6:14:01 PM: Installing missing commands
6:14:01 PM: Verify run directory
6:14:04 PM: ​
6:14:04 PM: ────────────────────────────────────────────────────────────────
6:14:04 PM:   Netlify Build                                                 
6:14:04 PM: ────────────────────────────────────────────────────────────────
6:14:04 PM: ​
6:14:04 PM: ❯ Version
6:14:04 PM:   @netlify/build 8.0.0
6:14:04 PM: ​
6:14:04 PM: ❯ Flags
6:14:04 PM:   deployId: 5fe4940fbf158473fed6e7f0
6:14:04 PM:   mode: buildbot
6:14:04 PM: ​
6:14:04 PM: ❯ Current directory
6:14:04 PM:   /opt/build/repo
6:14:04 PM: ​
6:14:04 PM: ❯ Config file
6:14:04 PM:   No config file was defined: using default values.
6:14:04 PM: ​
6:14:04 PM: ❯ Context
6:14:04 PM:   production
6:14:04 PM: ​
6:14:04 PM: ────────────────────────────────────────────────────────────────
6:14:04 PM:   1. Build command from Netlify app                             
6:14:04 PM: ────────────────────────────────────────────────────────────────
6:14:04 PM: ​
6:14:04 PM: $ npm run build
6:14:04 PM: npm ERR! code ENOENT
6:14:04 PM: npm ERR! syscall open
6:14:04 PM: npm ERR! path /opt/build/repo/package.json
6:14:04 PM: npm ERR! errno -2
6:14:04 PM: npm ERR! enoent ENOENT: no such file or directory, open '/opt/build/repo/package.json'
6:14:04 PM: npm ERR! enoent This is related to npm not being able to find a file.
6:14:04 PM: npm ERR! enoent
6:14:04 PM: npm ERR! A complete log of this run can be found in:
6:14:04 PM: npm ERR!     /opt/buildhome/.npm/_logs/2020-12-24T13_14_04_414Z-debug.log
6:14:04 PM: ​
6:14:04 PM: ────────────────────────────────────────────────────────────────
6:14:04 PM:   "build.command" failed                                        
6:14:04 PM: ────────────────────────────────────────────────────────────────
6:14:04 PM: ​
6:14:04 PM:   Error message
6:14:04 PM:   Command failed with exit code 254: npm run build
6:14:04 PM: ​
6:14:04 PM:   Error location
6:14:04 PM:   In Build command from Netlify app:
6:14:04 PM:   npm run build
6:14:04 PM: ​
6:14:04 PM:   Resolved config
6:14:04 PM:   build:
6:14:04 PM:     command: npm run build
6:14:04 PM:     commandOrigin: ui
6:14:04 PM:     publish: /opt/build/repo/lucrative
6:14:04 PM: Caching artifacts
6:14:04 PM: Started saving build plugins
6:14:04 PM: Finished saving build plugins
6:14:04 PM: Started saving pip cache
6:14:04 PM: Finished saving pip cache
6:14:04 PM: Started saving emacs cask dependencies
6:14:04 PM: Finished saving emacs cask dependencies
6:14:04 PM: Started saving maven dependencies
6:14:04 PM: Finished saving maven dependencies
6:14:04 PM: Started saving boot dependencies
6:14:04 PM: Finished saving boot dependencies
6:14:04 PM: Started saving rust rustup cache
6:14:04 PM: Finished saving rust rustup cache
6:14:04 PM: Started saving rust cargo bin cache
6:14:04 PM: Finished saving rust cargo bin cache
6:14:04 PM: Started saving go dependencies
6:14:04 PM: Finished saving go dependencies
6:14:07 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
6:14:07 PM: Failing build: Failed to build site
6:14:07 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2
6:14:07 PM: Finished processing build request in 14.84035813s

This is my application name: https://lucrative-web.netlify.app/

and this is my repo name: https://bitbucket.org/designvertica/lucrative/src/master/

@designvertica Welcome to the Netlify community.

Have you seen this help document?

Thanks for giving us your Netlify subdomain and BitBucket repository, but you have to unlock your repository for anyone else to view it.

The problem is, you don’t seem to have a package.json in the root of your repository.

from where i can embed this file? can you share the exact location and where from i paste it?

not a helpful reply dear. i told you i am new one. i don’t have any idea about these.

Just as I said, in the root of your repository, that is the base path of the repo, the same path where you might have your node_modules folder. That files should contain the dependencies and scripts needs to run the build.

from where i get the code of package.json?

You should already have it on your computer because without it, you can’t start a project, unless you’re not using Node Modules at all.

Can you share your repo?

this is my repo

It’s private sadly. Can you make it public or upload it elsewhere?

https://bitbucket.org/designvertica/lucrative-web/src/master/ i have created new one and its public

So from what I see, it looks like you already have a website that’s just waiting to deploy. So what you can do is, remove the build command from Netlify and set base and publish path blank. Lastly, rename your home.html to index.html.

thanks alot hirshikesh. its working now. very helpful advices you give it to me. thanks once again