payload: npm install not working on fresh template installations

Link to reproduction

No response

Describe the Bug

Cannot install or update dependencies after fresh installation of payload templates. Tested with “website” and “payload-demo”, might fail with other templates as well.

To Reproduce

  • Run npx create-payload-app and select either “website” or “payload-demo”
  • cd into the project
  • run npm install or npm update
  • It fails

Payload Version

2.3.1

Adapters and Plugins

No response

About this issue

  • Original URL
  • State: closed
  • Created 7 months ago
  • Comments: 15 (4 by maintainers)

Most upvoted comments

You should definitely have some automatic CI hook for checking all your template builds are healthy.

@dag0310 what error do you get after running npm install? You may need to use npm install --legacy-peer-deps.

@Kibuye24 those warnings should not prevent your app from running, what happens when view the app in the browser? (i.e. go to localhost:3000)

If you haven’t joined yet, the Payload discord server is a great place to get help and find solutions.