每当我尝试运行我的JS代码时,我都会收到错误消息,说我正在传递构造_exports_GroveTemp
的非法参数
代码:
var mraa = require('/usr/local/lib/node_modules/mraa');
var groveSensor = require('/usr/local/lib/node_modules/jsupm_grove');
console.log(groveSensor)
// Create the temperature sensor object using AIO pin 0
var temp = new groveSensor.GroveTemp(1)
console.log(temp.name());