4 ms·
Try with: node maptail.js <filename> Something to do with the permissions I think. Dependencies should be reported by node. Everything you need is on npm.
by stagas 16y ago
Try with: node maptail.js <filename>
Something to do with the permissions I think. Dependencies should be reported by node. Everything you need is on npm.
- brk 16y agoThanks. I hadn't used node before (and so it wasn't installed). Now I'm getting an error about the express module (rror: Cannot find module 'express'). Some google-fu is leading to helpful information, so your little project is turning into a nice crash-course in node for me. :)
- stagas 16y agoInstall npm from http://npmjs.org http://npmjs.org so you can then install any package that it reports missing.
- Corrado 16y agoI'm in the same boat; learning about Node and NPM. However, I am at an enpass with an error about 'isConfigurable' method on the Chaos library. Any clue about how to fix it? node.js:63 throw e; ^ TypeError: Cannot call method 'isConfigurable' of undefined at Function.seal (native) at Object.<anonymous> (/Users/rnhurt/.node_libraries/.npm/chaos/0.1.6-pre/package/chaos.js:40:10) at new <anonymous> (/Users/rnhurt/.node_libraries/.npm/chaos/0.1.6-pre/package/chaos.js:87:20) at /Users/rnhurt/.node_libraries/.npm/chaos/0.1.6-pre/package/chaos.js:64:40 at /Users/rnhurt/.node_libraries/.npm/helpful/0.0.3/package/lib/login.js:205:23 at Object.<anonymous> (/Users/rnhurt/src/js/maptail/maptail.js:57:5) at Module._compile (node.js:462:23) at Module._loadScriptSync (node.js:469:10) at Module.loadSync (node.js:338:12) at Object.runMain (node.js:522:24)
- stagas 16y agoMust be an incompatibility with the master version of node.js. git checkout v0.3.1 of node.js which is the version I'm using.
- sandaru1 16y agoTried on v0.3.5 - works fine after I added a "partials" parameter to boil config on maptail.js line 39. Otherwise boil.js fails to normalize the path because it's passing an undefined value and path.normalize tries to access "charAt" function of the string.
- derwiki 16y agoCan you be more specific? This is the first time I've tried to use node.js for anything and am very unfamiliar with the environment. I'm running into the charAt problem though, so I think your fix will be my fix.
- sandaru1 16y agomaptail.js line 43 add following line : , partials: __dirname + '/views'
- Corrado 16y agoSame for me. node v0.3.5 gives me a 'charAt' error, however I didn't add a "partials" parameter to anything.
- stagas 16y agoUse v0.3.1
- Corrado 16y agoConfirmed that v0.3.1 works where v0.3.5 does not. :/
- deleted 16y ago[deleted]
- derwiki 16y agoOne liner to get all the modules (not sure if this is supposed to happen automagically, but I had to do it all by hand): $ for module in express helpful socket.io geoip; do ~/opt/bin/npm install $module; done