SWS-5007 / My-Experience

13 stars 0 forks source link

How to deploy the Vue 2 Project on Netlify.com ? #3

Open SWS-5007 opened 1 year ago

SWS-5007 commented 1 year ago

Hi, I am going to deploy the Vue 2 project on Netlify.com. I have tried this guide, https://medium.com/vue-mastery/deploying-a-vue-app-to-netlify-8f8f7d36f8fb

SWS-5007 commented 1 year ago

But I got errors once I deployed the project on Netlify as Guide. Here is my Error log on Netlify.

11:52:54 PM: build-image version: d55944c047ef0aee2ac01971edde72cb2a50acfe (focal) 11:52:54 PM: build-image tag: v4.16.1 11:52:54 PM: buildbot version: a1ec8307ac4591dcd155485cdfce7d7be735ab26 11:52:54 PM: Fetching cached dependencies 11:52:54 PM: Failed to fetch cache, continuing with build 11:52:54 PM: Starting to prepare the repo for build 11:52:55 PM: No cached dependencies found. Cloning fresh repo 11:52:55 PM: git clone --filter=blob:none https://github.com/SWS-5007/BusinessCard-Frontend 11:52:56 PM: Preparing Git Reference refs/heads/main 11:52:56 PM: Parsing package.json dependencies 11:52:57 PM: Starting build script 11:52:57 PM: Installing dependencies 11:52:57 PM: Python version set to 2.7 11:52:58 PM: v16.19.0 is already installed. 11:52:58 PM: Now using node v16.19.0 (npm v8.19.3) 11:52:58 PM: Enabling node corepack 11:52:58 PM: Started restoring cached build plugins 11:52:58 PM: Finished restoring cached build plugins 11:52:58 PM: Attempting ruby version 2.7.2, read from environment 11:52:59 PM: Using ruby version 2.7.2 11:52:59 PM: Using PHP version 8.0 11:52:59 PM: Started restoring cached yarn cache 11:52:59 PM: Finished restoring cached yarn cache 11:52:59 PM: No yarn workspaces detected 11:52:59 PM: Started restoring cached node modules 11:52:59 PM: Finished restoring cached node modules 11:52:59 PM: Installing NPM modules using Yarn version 1.22.19 11:52:59 PM: yarn install v1.22.19 11:52:59 PM: [1/4] Resolving packages... 11:53:01 PM: warning fabric-history > fabric > jsdom > w3c-hr-time@1.0.2: Use your platform's native performance.now() and performance.timeOrigin. warning @vue/cli-plugin-babel > webpack > watchpack > watchpack-chokidar2 > chokidar > fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2. 11:53:01 PM: [2/4] Fetching packages... 11:53:09 PM: error Command failed. 11:53:09 PM: Exit code: 128 11:53:09 PM: Command: git 11:53:09 PM: Arguments: ls-remote --tags --heads ssh://git@github.com/sws-5007/vue-search-select.git 11:53:09 PM: Directory: /opt/build/repo 11:53:09 PM: Output: 11:53:09 PM: Host key verification failed. 11:53:09 PM: fatal: Could not read from remote repository. 11:53:09 PM: Please make sure you have the correct access rights 11:53:09 PM: and the repository exists. 11:53:09 PM: info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. 11:53:15 PM: Error during Yarn install 11:53:15 PM: Build was terminated: Build script returned non-zero exit code: 1 11:53:15 PM: Failing build: Failed to build site 11:53:15 PM: Failed during stage 'building site': Build script returned non-zero exit code: 1 (https://ntl.fyi/exit-code-1) 11:53:15 PM: Finished processing build request in 20.791998752s

What is wrong? How can I solve this problem?

SWS-5007 commented 1 year ago

I solved this problem like below. First, I remoted the package-lock.json file and yarn.lock file. And then ,deployed project again as guide. After that, project has been deployed successfully.