When I run npm run start on a centos 7 vps, I get the errors in the attached screenshot. What’s the best way to resolve this?
I checked with my hosting company and they said:
The error is happening because npm can’t find a package.json file within the directory that you’re running the command from. A “package.json” file is required for most nodejs applications since they tell node and npm, and other node modules, how to manage the application itself. This usually includes what versions of what modules the application needs in order to run, paths to any required files, as well as various other information about the application. More on this file can be found at the following URL: https://docs.npmjs.com/cli/v6/configuring-npm/package-json
If the file is not present then some commands like ‘npm run’ won’t execute properly.