Cannot find package.json file
When running an NPM build task, you may face the following error:
no such file or directory, open '/data/package.json'
This happens when you have your package.json file located in a subfolder in your repository and not in the root. Build commands start from the root of your repository, so you just need to add a
cd command before your npm command, like so:
cd /path/to/folder npm install