I'm new to node.js and javascript. I install node.js successfully,but when I run the js file in terminal on mac,I got error.
han:~ cuibosoft$ node example.js
module.js:340
throw err;
^
Error: Cannot find module '/Users/cuibosoft/example.js'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3
I'm sure example.js is at /Users/cuibosoft/. I don't know why node can't it.
catfind it? (cat example.js)node start /Users/cubiosoft/example.jsor while you are in correct directory,node start example.js