So, I was trying to deploy my website using Cloudflare, I used VS Code and React, and I am new to web development and coding in VS Code in general. Any help is appreciated, this is the log:
20:18:10.440
npm ERR! code ENOENT
20:18:10.441
npm ERR! syscall open
20:18:10.441
npm ERR! path /opt/buildhome/repo/package.json
20:18:10.442
npm ERR! errno -2
20:18:10.443
npm ERR! enoent ENOENT: no such file or directory, open ‘/opt/buildhome/repo/package.json’
20:18:10.444
npm ERR! enoent This is related to npm not being able to find a file.
20:18:10.444
npm ERR! enoent
20:18:10.446
20:18:10.446
npm ERR! A complete log of this run can be found in:
Thank you, I think you solved it, but there is this now:
11:35:31.301
npm ERR! code EUSAGE
11:35:31.305
npm ERR!
11:35:31.306
npm ERR! npm ci can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with npm install before continuing.
Appears there is an issue with the package-lock.json. You can generate a fresh version using npm i --package-lock-only (see docs) or remove it from the remote repository.
You put the newly generated package-lock.json at the root of the repository rather than in the my-website directory. Thus the old one wasn’t overwritten.