如何使用Meteor加载NAN个库?目前,我正在使用此代码:
greenworks = require('./imports/lib/lib/greenworks-osx64');
当我尝试加载" .node"文件,Meteor错误:
Error: Cannot find module './imports/lib/lib/greenworks-osx64'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at meteorInstall.imports.lib.greenworks.js (imports/lib/greenworks.js:13:25)
at fileEvaluate (packages/modules-runtime/.npm/package/node_modules/install/install.js:153:1)
at require (packages/modules-runtime/.npm/package/node_modules/install/install.js:82:1)
at meteorInstall.imports.lib.theculling.js (imports/lib/theculling.js:1:18)
at fileEvaluate (packages/modules-runtime/.npm/package/node_modules/install/install.js:153:1)
at Module.require (packages/modules-runtime/.npm/package/node_modules/install/install.js:82:1)
at Module.Mp.import (/Users/jmeyer2k/.meteor/packages/modules/.0.7.5.8vojen++os+web.browser+web.cordova/npm/node_modules/reify/lib/runtime.js:70:16)
at meteorInstall.server.main.js (server/main.js:1:1)
我已经尝试过:改变不同相对和绝对路径的路径; checking code for references to ".js"