cannot find module 'xml2js'

运行nodejs网站报类似错误,缺少相应的报

在NodeJs安装目录,运行Node.js command prompt ,跳转到网站所在目录,运行npm install xml2js,安装缺少的模块,模块会安装到当前目录的node_modules文件夹

原文地址:https://www.cnblogs.com/lgxtry/p/4583636.html