Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

nodeman looking for .meta files

Tags:

node.js

I followed the instructions from: https://github.com/remy/nodemon

Installed:

sudo npm install -g nodeman

And then i run:

nodeman app.js

and i get this error:

Error: Cannot find module '/usr/local/lib/node_modules/nodeman/docs/app.js.meta'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:278:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.help (/usr/local/lib/node_modules/nodeman/lib/nodeman.js:172:12)
    at Object.<anonymous> (/usr/local/lib/node_modules/nodeman/bin/_nodeman:61:21)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)

My app.js just contains this:

var http = require('http');

http.createServer(function(request, response){
    response.writeHead({
        'Content-Type':'/text/plain'
    });

    response.end('hello world');

}).listen(3000);
like image 391
dbers Avatar asked Nov 27 '22 16:11

dbers


1 Answers

it's because it's nodemon and not nodeman

like image 81
eran otzap Avatar answered Dec 09 '22 21:12

eran otzap