Send en email in a web application

I would need to send an email in a web application, I was thinking to use mailgun for that, when I try to install this component via this command line :
npm install mailgun-js
I get an error message, here is the content of the log file :

1242 error path D:\IonicProjects\ESS\node_modules\cordova-android\node_modules\balanced-match
1243 error code ENOENT
1244 error errno -4058
1245 error syscall rename
1246 error enoent ENOENT: no such file or directory, rename 'D:\IonicProjects\ESS\node_modules\cordova-android\node_modules\balanced-match' -> 'D:\IonicProjects\ESS\node_modules\cordova-android\node_modules\.balanced-match.DELETE'
1247 error enoent This is related to npm not being able to find a file.
1248 verbose exit [ -4058, true ]

Strangely, the folder
doesn’t exist.
Do you have any solution to my new issue?
Thanks by advance.

EDIT : I had to run the following command line :
npm install npm@latest
I can now install this component