Reputation: 261
I am having problems with the node.js template. It seems to be looking for the package.json in the wrong directory? And I can't find anything online for documentation on how to handle this.
I am trying to upload my entire repo, which contains a client, server and design folders. The client is an angular 9 project where the package.json is residing.
On action build I get the following ENOT error:
npm ERR! enoent ENOENT: no such file or directory, open '/home/runner/work/Real-Reviews/Real-Reviews/package.json'
Can anyone help?
See below references for action set up.
Upvotes: -1
Views: 932
Reputation: 4412
Like @jonrsharpe mentioned in the comments you need to change the working directory you're running in.
steps:
run: npm install
shell: bash
working-directory: client
run: npm run build --if--present
shell: bash
working-directory: client
Upvotes: 1