NOENT: no such file or directory, open '/opt/buildhome/repo/package.json'

How to resolve the following?

08:19:34.926 npm ERR! code ENOENT
08:19:34.926 npm ERR! syscall open
08:19:34.926 npm ERR! path /opt/buildhome/repo/package.json
08:19:34.926 npm ERR! errno -2
08:19:34.927 npm ERR! enoent ENOENT: no such file or directory, open ‘/opt/buildhome/repo/package.json’
08:19:34.927 npm ERR! enoent This is related to npm not being able to find a file.
08:19:34.928 npm ERR! enoent

You’re running an npm run command in a directory that has no package.json file. What are you trying to accomplish?

2 Likes

during this time I figured out what was the problem, the roog dir was incorrect.
Thank you

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