I’m receiving the following URL when trying to build a NextJS app:
Mar 13 04:51:46 PM ==> Running build command 'npm i && npm run build'...
Mar 13 04:52:33 PM npm ERR! code ENOENT
Mar 13 04:52:33 PM npm ERR! syscall chmod
Mar 13 04:52:33 PM npm ERR! path /opt/render/project/src/frontend/node_modules/supabase/bin/supabase
Mar 13 04:52:33 PM npm ERR! errno -2
Mar 13 04:52:33 PM npm ERR! enoent ENOENT: no such file or directory, chmod '/opt/render/project/src/frontend/node_modules/supabase/bin/supabase'
Mar 13 04:52:33 PM npm ERR! enoent This is related to npm not being able to find a file.
Mar 13 04:52:33 PM npm ERR! enoent
Here’s what the render.yaml looks like:
- type: web
name: frontend
env: node
repo: REPO_URL
rootDir: frontend
region: oregon
plan: standard
buildCommand: npm i && npm run build
startCommand: npm run start