Hello all, I trying to run sample nodejs severs and clients in lib/nodejs folder. But when I tried to run them I am getting following error.
*chamila@chamila-Dell-System-Vostro-3450:~/GSoC/thrift$ nodejs lib/nodejs/test/client.js -p binary -t buffered * *module.js:337* * throw new Error("Cannot find module '" + request + "'");* * ^* *Error: Cannot find module 'thrift/transport'* * at Function._resolveFilename (module.js:337:11)* * at Function._load (module.js:279:25)* * at Module.require (module.js:359:17)* * at require (module.js:375:17)* * at Object.<anonymous> (/home/chamila/GSoC/thrift/lib/nodejs/test/client.js:27:24)* * at Module._compile (module.js:446:26)* * at Object..js (module.js:464:10)* * at Module.load (module.js:353:32)* * at Function._load (module.js:311:12)* * at Array.0 (module.js:484:10)* I tried to install thrift/transport using npm, but it didn't work either. *chamila@chamila-Dell-System-Vostro-3450:~/GSoC/thrift$ sudo npm install thrift/transport* *[sudo] password for chamila: * *npm ERR! Could not install: thrift/transport* *npm ERR! Error: ENOENT, stat 'thrift/transport'* *npm ERR! You may report this log at:* *npm ERR! <http://bugs.debian.org/npm <http://bugs.debian.org/npm>>* *npm ERR! or use* *npm ERR! reportbug --attach /home/chamila/GSoC/thrift/npm-debug.log npm* *npm ERR! * *npm ERR! System Linux 3.8.0-19-generic* *npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "thrift/transport"* *npm ERR! cwd /home/chamila/GSoC/thrift* *npm ERR! node -v v0.6.19* *npm ERR! npm -v 1.1.4* *npm ERR! path thrift/transport* *npm ERR! code ENOENT* *npm ERR! message ENOENT, stat 'thrift/transport'* *npm ERR! errno {}* *npm ERR! * *npm ERR! Additional logging details can be found in:* *npm ERR! /home/chamila/GSoC/thrift/npm-debug.log* *npm not ok* What should I do for this? -- *Chamila Dilshan Wijayarathna,* SMIEEE, SMIESL, Undergraduate, Department of Computer Science and Engineering, University of Moratuwa.