‘maildev’ is not recognized as an internal or external command

I’m trying to use maildev in a springboot application. I’m using intellij program.

using the terminal, I install the maildev like this:

C:UsersmsysDesktopspring_start>npm install -g maildev

“spring_start” is my project name

after installing it, the following appear in the terminal

npm WARN deprecated [email protected]: The package has been renamed to open
npm WARN deprecated [email protected]: All versions below 4.0.1 of Nodemailer are deprecated. See https://nodemailer.com/status/
npm WARN deprecated [email protected]: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3
.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
C:UsersmsysAppDataRoamingnpmmaildev -> C:UsersmsysAppDataRoamingnpmnode_modulesmaildevbinmaildev
[email protected]
updated 1 package in 6.095s

but when I’m trying to run “maildev” command like this:

C:UsersmsysDesktopspring_start>maildev

the following error message appears:

‘maildev’ is not recognized as an internal or external command,
operable program or batch file.

how to solve it?

Answer

I had the same problem. So I found a tricky way to get past the ‘maildev’ is not recognized as an internal or external command issue.

So here is what I did.

  1. I installed as an administrator maildev globally through the cmd.

  2. I went to C:UsersYour_User_NameAppDataRoamingnpm where Your_User_Name is your own.

  3. Clicked on maildev.cmd
    The terminal will open with something like this: `

    `MailDev webapp running at http://0.0.0.0:1080

    MailDev SMTP Server running at 0.0.0.0:1025`

Finally, In your browser, you can open the web application through 127.0.0.1:1080

Leave a Reply

Your email address will not be published. Required fields are marked *