NodeJS package install failure

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

Hi Nicolas,

We’d like to take a look at the service in question here but unfortunately, the email you’re using here doesn’t match a Render account - please can you contact us from our dashboard and the service in question so that we can assist you further,

Regards,

John B

Thanks for the response, just as a future note for others I was able to work around this by moving from npm to yarn 1.22.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.