my previous commit worked as expect. but i made some changes in the app, but when i tried to deploy, i got an error.
if i run npm run build and npm run export in localhost, the exportment works as expect
4:23:55 PM: build-image version: 69285e8b40f1b6adf78be62b2fda2250efb9694b (focal)
4:23:55 PM: buildbot version: 69285e8b40f1b6adf78be62b2fda2250efb9694b
4:23:55 PM: Fetching cached dependencies
4:23:55 PM: Starting to download cache of 271.2MB
4:23:57 PM: Finished downloading cache in 2.162s
4:23:57 PM: Starting to extract cache
4:24:01 PM: Finished extracting cache in 4.012s
4:24:02 PM: Finished fetching cache in 6.22s
4:24:02 PM: Starting to prepare the repo for build
4:24:02 PM: Preparing Git Reference refs/heads/main
4:24:02 PM: Parsing package.json dependencies
4:24:04 PM: Starting build script
4:24:04 PM: Installing dependencies
4:24:04 PM: Python version set to 2.7
4:24:04 PM: Started restoring cached Node.js version
4:24:04 PM: Finished restoring cached Node.js version
4:24:05 PM: v16.19.1 is already installed.
4:24:05 PM: Now using node v16.19.1 (npm v8.19.3)
4:24:05 PM: Enabling Node.js Corepack
4:24:05 PM: Started restoring cached build plugins
4:24:05 PM: Finished restoring cached build plugins
4:24:05 PM: Attempting Ruby version 2.7.2, read from environment
4:24:06 PM: Using Ruby version 2.7.2
4:24:06 PM: Using PHP version 8.0
4:24:06 PM: Started restoring cached corepack dependencies
4:24:06 PM: Finished restoring cached corepack dependencies
4:24:06 PM: No npm workspaces detected
4:24:06 PM: Started restoring cached node modules
4:24:06 PM: Finished restoring cached node modules
4:24:06 PM: Installing npm packages using npm version 8.19.3
4:24:12 PM: npm WARN ERESOLVE overriding peer dependency
4:24:12 PM: npm WARN While resolving: react-inspector@5.1.1
4:24:12 PM: npm WARN Found: react@18.2.0
4:24:12 PM: npm WARN node_modules/react
4:24:12 PM: npm WARN react@βlatestβ from the root project
4:24:12 PM: npm WARN 59 more (@design-systems/utils, β¦)
4:24:12 PM: npm WARN
4:24:12 PM: npm WARN Could not resolve dependency:
4:24:12 PM: npm WARN peer react@β^16.8.4 || ^17.0.0β from react-inspector@5.1.1
4:24:12 PM: npm WARN node_modules/@storybook/addon-actions/node_modules/react-inspector
4:24:12 PM: npm WARN react-inspector@β^5.1.0β from @storybook/addon-actions@6.5.15
4:24:12 PM: npm WARN node_modules/@storybook/addon-actions
4:24:12 PM: npm WARN
4:24:12 PM: npm WARN Conflicting peer dependency: react@17.0.2
4:24:12 PM: npm WARN node_modules/react
4:24:12 PM: npm WARN peer react@β^16.8.4 || ^17.0.0β from react-inspector@5.1.1
4:24:12 PM: npm WARN node_modules/@storybook/addon-actions/node_modules/react-inspector
4:24:12 PM: npm WARN react-inspector@β^5.1.0β from @storybook/addon-actions@6.5.15
4:24:12 PM: npm WARN node_modules/@storybook/addon-actions
4:24:12 PM: npm WARN ERESOLVE overriding peer dependency
4:24:12 PM: npm WARN While resolving: @mdx-js/react@1.6.22
4:24:12 PM: npm WARN Found: react@18.2.0
4:24:12 PM: npm WARN node_modules/react
4:24:12 PM: npm WARN react@βlatestβ from the root project
4:24:12 PM: npm WARN 59 more (@design-systems/utils, β¦)
4:24:12 PM: npm WARN
4:24:12 PM: npm WARN Could not resolve dependency:
4:24:12 PM: npm WARN peer react@β^16.13.1 || ^17.0.0β from @mdx-js/react@1.6.22
4:24:12 PM: npm WARN node_modules/@storybook/addon-docs/node_modules/@mdx-js/react
4:24:12 PM: npm WARN @mdx-js/react@β^1.6.22β from @storybook/addon-docs@6.5.15
4:24:12 PM: npm WARN node_modules/@storybook/addon-docs
4:24:12 PM: npm WARN
4:24:12 PM: npm WARN Conflicting peer dependency: react@17.0.2
4:24:12 PM: npm WARN node_modules/react
4:24:12 PM: npm WARN peer react@β^16.13.1 || ^17.0.0β from @mdx-js/react@1.6.22
4:24:12 PM: npm WARN node_modules/@storybook/addon-docs/node_modules/@mdx-js/react
4:24:12 PM: npm WARN @mdx-js/react@β^1.6.22β from @storybook/addon-docs@6.5.15
4:24:12 PM: npm WARN node_modules/@storybook/addon-docs
4:24:12 PM: npm WARN ERESOLVE overriding peer dependency
4:24:12 PM: npm WARN While resolving: react-element-to-jsx-string@14.3.4
4:24:12 PM: npm WARN Found: react@18.2.0
4:24:12 PM: npm WARN node_modules/react
4:24:12 PM: npm WARN react@βlatestβ from the root project
4:24:12 PM: npm WARN 59 more (@design-systems/utils, β¦)
4:24:12 PM: npm WARN
4:24:12 PM: npm WARN Could not resolve dependency:
4:24:12 PM: npm WARN peer react@β^0.14.8 || ^15.0.1 || ^16.0.0 || ^17.0.1β from react-element-to-jsx-string@14.3.4
4:24:12 PM: npm WARN node_modules/@storybook/react/node_modules/react-element-to-jsx-string
4:24:12 PM: npm WARN react-element-to-jsx-string@β^14.3.4β from @storybook/react@6.5.15
4:24:12 PM: npm WARN node_modules/@storybook/react
4:24:12 PM: npm WARN
4:24:12 PM: npm WARN Conflicting peer dependency: react@17.0.2
4:24:12 PM: npm WARN node_modules/react
4:24:12 PM: npm WARN peer react@β^0.14.8 || ^15.0.1 || ^16.0.0 || ^17.0.1β from react-element-to-jsx-string@14.3.4
4:24:12 PM: npm WARN node_modules/@storybook/react/node_modules/react-element-to-jsx-string
4:24:12 PM: npm WARN react-element-to-jsx-string@β^14.3.4β from @storybook/react@6.5.15
4:24:12 PM: npm WARN node_modules/@storybook/react
4:24:12 PM: npm WARN ERESOLVE overriding peer dependency
4:24:12 PM: npm WARN While resolving: react-element-to-jsx-string@14.3.4
4:24:12 PM: npm WARN Found: react-dom@18.2.0
4:24:12 PM: npm WARN node_modules/react-dom
4:24:12 PM: npm WARN react-dom@βlatestβ from the root project
4:24:12 PM: npm WARN 41 more (@design-systems/utils, @mui/base, @mui/material, β¦)
4:24:12 PM: npm WARN
4:24:12 PM: npm WARN Could not resolve dependency:
4:24:12 PM: npm WARN peer react-dom@β^0.14.8 || ^15.0.1 || ^16.0.0 || ^17.0.1β from react-element-to-jsx-string@14.3.4
4:24:12 PM: npm WARN node_modules/@storybook/react/node_modules/react-element-to-jsx-string
4:24:12 PM: npm WARN react-element-to-jsx-string@β^14.3.4β from @storybook/react@6.5.15
4:24:12 PM: npm WARN node_modules/@storybook/react
4:24:12 PM: npm WARN
4:24:12 PM: npm WARN Conflicting peer dependency: react-dom@17.0.2
4:24:12 PM: npm WARN node_modules/react-dom
4:24:12 PM: npm WARN peer react-dom@β^0.14.8 || ^15.0.1 || ^16.0.0 || ^17.0.1β from react-element-to-jsx-string@14.3.4
4:24:12 PM: npm WARN node_modules/@storybook/react/node_modules/react-element-to-jsx-string
4:24:12 PM: npm WARN react-element-to-jsx-string@β^14.3.4β from @storybook/react@6.5.15
4:24:12 PM: npm WARN node_modules/@storybook/react
4:24:16 PM: > mauro-chrisostimo@0.1.0 postinstall
4:24:16 PM: > npm run prepare
4:24:16 PM: > mauro-chrisostimo@0.1.0 prepare
4:24:16 PM: > husky install
4:24:16 PM: sh: 1: husky: not found
4:24:16 PM: npm ERR! code 127
4:24:16 PM: npm ERR! path /opt/build/repo
4:24:16 PM: Failed during stage βbuilding siteβ: Build script returned non-zero exit code: 1 (Search results for '"non-zero exit code: 1"' - Netlify Support Forums)
4:24:16 PM: npm ERR! command failed
4:24:16 PM: npm ERR! command sh -c β npm run prepare
4:24:16 PM: npm ERR! A complete log of this run can be found in:
4:24:16 PM: npm ERR! /opt/buildhome/.npm/_logs/2023-03-06T19_24_06_929Z-debug-0.log
4:24:16 PM: Error during npm install
4:24:16 PM: Build was terminated: Build script returned non-zero exit code: 1
4:24:16 PM: Failing build: Failed to build site
4:24:16 PM: Finished processing build request in 21.16s
Yes. i have set an env
NETLIFY_NEXT_PLUGIN_SKIP true.
and my build command is a script called npm run deploy-static, which is the command βnpm run build && npm run exportβ
and iβm serving the out folder.
both commands works in localhost