TheThingSystem / steward

The Thing System is a set of software components and network protocols that aims to fix the Internet of Things. Our steward software is written in node.js making it both portable and easily extensible. It can run on your laptop, or fit onto a small single board computer like the Raspberry Pi.
http://thethingsystem.com
Other
346 stars 81 forks source link

Error while running in macosx #293

Open arcturus opened 8 years ago

arcturus commented 8 years ago

I get the following exception when running on macosx with node v0.10.24:

alert: [steward] exception diagnostic=Cannot find module 'node-blink1' alert: [steward] exception stack=[{"fileName":"module.js","lineNumber":338,"functionName":"Function.Module._resolveFilename","typeName":"Function","methodName":"Module._resolveFilename","columnNumber":15,"native":false},{"fileName":"module.js","lineNumber":280,"functionName":"Function.Module._load","typeName":"Function","methodName":"Module._load","columnNumber":25,"native":false},{"fileName":"module.js","lineNumber":364,"functionName":"Module.require","typeName":"Module","methodName":"require","columnNumber":17,"native":false},{"fileName":"module.js","lineNumber":380,"functionName":"require","typeName":"Object","methodName":null,"columnNumber":17,"native":false},{"fileName":"/Users/arcturus/dev/git/community/steward/steward/devices/devices-lighting/lighting-blink1-led.js","lineNumber":4,"functionName":"","typeName":"Object","methodName":null,"columnNumber":19,"native":false},{"fileName":"module.js","lineNumber":456,"functionName":"Module._compile","typeName":"Module","methodName":"_compile","columnNumber":26,"native":false},{"fileName":"module.js","lineNumber":474,"functionName":"Object.Module._extensions..js","typeName":"Object","methodName":"Module._extensions..js","columnNumber":10,"native":false},{"fileName":"module.js","lineNumber":356,"functionName":"Module.load","typeName":"Module","methodName":"load","columnNumber":32,"native":false},{"fileName":"module.js","lineNumber":312,"functionName":"Function.Module._load","typeName":"Function","methodName":"Module._load","columnNumber":12,"native":false},{"fileName":"module.js","lineNumber":364,"functionName":"Module.require","typeName":"Module","methodName":"require","columnNumber":17,"native":false}] uncaught exception: Error: Cannot find module 'node-blink1' Press ^C to exit or wait 10 seconds to restart

arcturus commented 8 years ago

Had to manually add the package node-blink1

Faeranne commented 8 years ago

npm install should have installed node-blink1. Are you using the homebrew version of node?

arcturus commented 8 years ago

I'm using node installed via nmv.

Faeranne commented 8 years ago

Can you try installing blink-1 manually, and let me know how steward reacts?

arcturus commented 8 years ago

Yep, that was I did (see 2nd commend). Installing manually works ok and let's steward start

Faeranne commented 8 years ago

Your right, my bad.

Can you send me the versions of node and npm you are using, as well as git rev-parse HEAD?

arcturus commented 8 years ago

Running node 4.2.0 With commit c000d65f1f431727e54bf0959c521ef359323cb6