Hello! I need help deploying my vue site.
link to github repo:
Recently in CL I have:
Node options: --openssl-legacy-rovider
–legacy-peer-deps
I also did an audit fix --force
then i add, commit, pushed the project
which allows for the program to run locally but when trying to deploy I get the following error:
Blockquote
6:50:51 PM: 1. Build command from Netlify app
6:50:51 PM: ────────────────────────────────────────────────────────────────
6:50:51 PM:
6:50:51 PM: $ CI= npm run build
6:50:52 PM: > final-vue-capstone-seed@0.1.0 build
6:50:52 PM: > vue-cli-service build
6:50:52 PM: All browser targets in the browserslist configuration have supported ES module.
6:50:52 PM: Therefore we don’t build two separate bundles for differential loading.
6:50:52 PM: - Building for production…
6:51:03 PM: ERROR Failed to compile with 1 error1:51:03 AM
6:51:03 PM: [eslint]
6:51:03 PM: /opt/build/repo/capstone/vue/src/components/CreateNewCollection.vue
6:51:03 PM: 38:13 error Unexpected console statement no-console
6:51:03 PM:
6:51:03 PM: /opt/build/repo/capstone/vue/src/components/allComics.vue
6:51:03 PM: 112:7 error Unexpected console statement no-console
6:51:03 PM: 114:7 error Unexpected console statement no-console
6:51:03 PM: 130:7 error Unexpected console statement no-console
6:51:03 PM: 131:7 error Unexpected console statement no-console
6:51:03 PM:
6:51:03 PM: 5 problems (5 errors, 0 warnings)
6:51:03 PM:
6:51:03 PM: You may use special comments to disable some warnings.
6:51:03 PM: Use // eslint-disable-next-line to ignore the next line.
6:51:03 PM: Use /* eslint-disable */ to ignore all warnings in a file.
6:51:03 PM: ERROR Error: Build failed with errors.
6:51:03 PM: Error: Build failed with errors.
6:51:03 PM: at /opt/build/repo/capstone/vue/node_modules/@vue/cli-service/lib/commands/build/index.js:207:23
6:51:03 PM: at /opt/build/repo/capstone/vue/node_modules/webpack/lib/webpack.js:148:8
6:51:03 PM: at /opt/build/repo/capstone/vue/node_modules/webpack/lib/HookWebpackError.js:68:3
6:51:03 PM: at Hook.eval [as callAsync] (eval at create (/opt/build/repo/capstone/vue/node_modules/tapable/lib/HookCodeFactory.js:33:10), :6:1)
6:51:03 PM: at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/opt/build/repo/capstone/vue/node_modules/tapable/lib/Hook.js:18:14)
6:51:03 PM: at Cache.shutdown (/opt/build/repo/capstone/vue/node_modules/webpack/lib/Cache.js:150:23)
6:51:03 PM: at /opt/build/repo/capstone/vue/node_modules/webpack/lib/Compiler.js:1225:15
6:51:03 PM: at Hook.eval [as callAsync] (eval at create (/opt/build/repo/capstone/vue/node_modules/tapable/lib/HookCodeFactory.js:33:10), :6:1)
6:51:03 PM: at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/opt/build/repo/capstone/vue/node_modules/tapable/lib/Hook.js:18:14)
6:51:03 PM: at Compiler.close (/opt/build/repo/capstone/vue/node_modules/webpack/lib/Compiler.js:1218:23)
6:51:03 PM:
6:51:03 PM: “build.command” failed
6:51:03 PM: ────────────────────────────────────────────────────────────────
6:51:03 PM:
6:51:03 PM: Error message
6:51:03 PM: Command failed with exit code 1: CI= npm run build (Search results for '"non-zero exit code: 1"' - Netlify Support Forums)
6:51:03 PM:
6:51:03 PM: Error location
6:51:03 PM: In Build command from Netlify app:
6:51:04 PM: Failed during stage ‘building site’: Build script returned non-zero exit code: 2 (Search results for '"non-zero exit code: 2"' - Netlify Support Forums)
6:51:03 PM: CI= npm run build
6:51:03 PM:
6:51:03 PM: Resolved config
6:51:03 PM: build:
6:51:03 PM: base: /opt/build/repo/capstone/vue
6:51:03 PM: command: CI= npm run build
6:51:03 PM: commandOrigin: ui
6:51:03 PM: environment:
6:51:03 PM: - NODE_VERSION
6:51:03 PM: - NPM_FLAGS
6:51:03 PM: publish: /opt/build/repo/capstone/vue/dist
6:51:03 PM: publishOrigin: ui
6:51:03 PM: Caching artifacts
6:51:03 PM: Started saving node modules
6:51:03 PM: Finished saving node modules
6:51:03 PM: Started saving build plugins
6:51:03 PM: Finished saving build plugins
6:51:03 PM: Started saving corepack cache
6:51:03 PM: Finished saving corepack cache
6:51:03 PM: Started saving pip cache
6:51:03 PM: Finished saving pip cache
6:51:03 PM: Started saving emacs cask dependencies
6:51:03 PM: Finished saving emacs cask dependencies
6:51:03 PM: Started saving maven dependencies
6:51:03 PM: Finished saving maven dependencies
6:51:03 PM: Started saving boot dependencies
6:51:03 PM: Finished saving boot dependencies
6:51:03 PM: Started saving rust rustup cache
6:51:03 PM: Finished saving rust rustup cache
6:51:03 PM: Started saving go dependencies
6:51:03 PM: Finished saving go dependencies
6:51:04 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
6:51:04 PM: Failing build: Failed to build site
6:51:04 PM: Finished processing build request in 51.155s
Blockquote
I can send the rest of the code if needed. Any help would be great. Its my first time deploying projects.