Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在运行一个 Derby 应用程序。我正在尝试使用插件“nodemailer”,但是当它“require('os')”时,我收到错误“找不到模块“os””。
可能是什么原因造成的?
问题是我需要它在一个文件中,该文件以类似于 browserify 的方法呈现在客户端上。我只是不得不把它放在“server.js”中,然后从服务器端的快速路由中调用它。