The problem was that I was requiring it in a file that was rendered on the client in a method similar to browserify. I just instead had to put it in "server.js", and call it from a server-side express route.
Node.js "module "os" not found from"
-
06-08-2022 - |
题
I am running a Derby app. I am trying to use the plugin "nodemailer", but when it "require('os')", I get the error "module "os" not found from".
What could be causing it?
解决方案
不隶属于 StackOverflow