Closed leizongmin closed 11 years ago
You cannot 'require' lispyscript like that. You have to run it from the command line. see docs.
I want to use lispyscript like this without compile command:
require('./mycode.ls');
Now the problem has been solved:
var path = require('path');
require(path.resolve(path.dirname(require.resolve('lispyscript')), 'node.js'));
require('lispyscript');
I try to require the "lispyscript" module, it throws an error: