Npm ci error when creating Discord Bot

I have been given this error using npm. Anyone here that can help me?

Run npm ci
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /home/runner/work/Discord-Bot/Discord-Bot/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/home/runner/work/Discord-Bot/Discord-Bot/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/runner/.npm/_logs/2020-09-12T17_28_37_125Z-debug.log
##[error]Process completed with exit code 254.

Is Discord-Bot really inside Discord-Bot? (Re: the file system paths). Without more details or a repo reference that’s the only thing that appears strange.

How do I change the file path?

If you could provide additional details perhaps we could help you fix it.

  • Are you encountering this issue in a GitHub workflow? (If so please provide a link to the workflow).
  • Are you encountering this issue locally? (If so please provide additional details as to what’s being run and where/how).

In either case in order to help further we need details in order to direct you to a solution.

1 Like