0
我是node.js上的newby。我想解析一个xml文件到json中,所以我试图使用https://github.com/blue-button/bluebutton.js的bulebutton库。 首先,我已经通过命令npm install bluebutton安装了模块,并使用bluebutton模块创建了一个node_modules文件夹。 现在我创建了一个test.js文件,下面的代码导出节点模块为本地错误
var bb = require('bluebutton');
var myRecord = bb.BlueButton('./asd.xml');
console.log(myRecord);
但它给了我一个错误,bluebutton没有定义。请帮我figureout这个问题感谢
无其不同的模块其bluebutton不bluebutton –