Skip to content

npm run email not working? #2

@barbareshet

Description

@barbareshet

if you are on Windows, using CMD

"email": "cp .env ./node_modules/react-email && email dev --dir src/email --port 3001", will not work. you will most probably get 'cp' is not recognized as an internal or external command,
operable program or batch file.

then, all StackOverflow answers will say, replace cp with copy, and it still wouldn't work due to The syntax of the command is incorrect.

this one was working for me (thanks ChatGPT)
in the package.json email script, use this one:
"email": "copy .env .\\node_modules\\react-email & email dev ^--dir src\\email ^--port 3001"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions