Skip to content
Discussion options

You must be logged in to vote

I think you're probably mixing up instructions from npx create-payload-app and manual install. If you've used npx create-payload-app, you will not need to run node server.js, and rather, you should run npm run dev or yarn dev.

The Node error you're seeing is because Node can't find your server.js file. It will look in the folder that you're currently in. So for example, npx create-payload-app will create a /src directory, and your server will actually be in that folder instead—which will explain why Node can't find it in the root folder. Running yarn dev or npm run dev should resolve this.

This is not an issue with Payload though, per se. So I'll convert this to a discussion, but we're ha…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sdomville
Comment options

Answer selected by zubricks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
documentation Improvements or additions to documentation status: needs-triage Possible bug which hasn't been reproduced yet
2 participants
Converted from issue

This discussion was converted from issue #1976 on January 31, 2023 13:52.