Most NodeJs module when included in my codes won't work. Get the error NODE_MODULE_NOT_FOUND when run.Can Sololearn or any. help | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

Most NodeJs module when included in my codes won't work. Get the error NODE_MODULE_NOT_FOUND when run.Can Sololearn or any. help

const fs = require('fs'); const formidable = require('formidable'); const nodemailer = require('nodemailer); ...etc

22nd Sep 2020, 10:07 PM
Apongpoh Gilbert
Apongpoh Gilbert - avatar
3 Answers
+ 3
formidable and nodemailer built in , about Installation on sololearn no idea,maybe mail at info@sololearn and ask them if there is a way
22nd Sep 2020, 10:12 PM
Abhay
Abhay - avatar
+ 1
Apongpoh Gilbert You can always check codes as well ,node was a new edition and many were eager to know how to install modules ,one of the code https://code.sololearn.com/cdgX24Nypu5V/?ref=app It won't work tho since it takes times to install one and before you get execution timeout error
22nd Sep 2020, 10:21 PM
Abhay
Abhay - avatar
+ 1
I don't think Sololearn supports nodejs. You're basically trying to use require statements in the browser, which does not work by default.
22nd Sep 2020, 10:42 PM
CHMD
CHMD - avatar