I need advice to debug deploy Netlify App
i am getting exit code 1 and 2 errors - I am not sure where to start really… can I use yarn build as my build command? or does it need to be npm ? also, i have both package-lock.json and yarn.lock… would these conflict and cause error? My build error is as follows:
r 1
12:03:27 PM: make: Leaving directory ‘/opt/build/repo/node_modules/node-sass/build’
12:03:27 PM: gyp ERR! build error
12:03:27 PM: gyp ERR! stack Error: make
failed with exit code: 2
12:03:27 PM: gyp ERR! stack at ChildProcess.onExit (/opt/build/repo/node_modules/node-gyp/lib/build.js:262:23)
12:03:27 PM: gyp ERR! stack at ChildProcess.emit (node:events:390:28)
12:03:27 PM: gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
12:03:27 PM: gyp ERR! System Linux 4.19.167+
12:03:27 PM: gyp ERR! command “/opt/buildhome/.nvm/versions/node/v16.12.0/bin/node” “/opt/build/repo/node_modules/node-gyp/bin/node-gyp.js” “rebuild” “–verbose” “–libsass_ext=” “–libsass_cflags=” “–libsass_ldflags=” “–libsass_library=”
12:03:27 PM: gyp ERR! cwd /opt/build/repo/node_modules/node-sass
12:03:27 PM: gyp ERR! node -v v16.12.0
12:03:27 PM: gyp ERR! node-gyp -v v3.8.0
12:03:27 PM: gyp ERR! not ok
12:03:27 PM: Build failed with error code: 1
12:03:27 PM: Error during Yarn install
12:03:27 PM: Build was terminated: Build script returned non-zero exit code: 1
12:03:28 PM: Failing build: Failed to build site
12:03:28 PM: Finished processing build request in 3m55.23159136s
i tried using both npm and yarn build so far… however i am trying to run my project through git.
here are my current settings:
Repository
github.com/shayleemeyer/portfolio
Base directory:
Not set
Build command:
yarn build
Publish directory:
build
Deploy log visibility:
Logs are public
Builds:
Active
… i have also created a _redirects file but that did not help…
finally, my “builds” folder appears to only contain my images folder… build/assets
why is JUST my assets folder under build?? … SOS and thanks in advance to anyone who to help!