node.js - nodeman 寻找 .meta 文件

标签 node.js

我遵循了以下说明: https://github.com/remy/nodemon

已安装:

sudo npm install -g nodeman

然后我运行:

nodeman app.js

我得到这个错误:

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)

我的 app.js 只包含这个:

var http = require('http');

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

    response.end('hello world');

}).listen(3000);

最佳答案

因为是nodemon不是nodeman

关于node.js - nodeman 寻找 .meta 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31444317/

相关文章:

javascript - 具有 scss 的 node_module 上出现 Gulp 错误

javascript - node.js - 表达 - res.render() : Correct format for feeding variables into the JSON parameter?

Node.js:zlib.gzipSync()

node.js - sendgrid 在 Node js 中附加一个 pdf 文件

javascript - NodeJS - 如何通过请求下载文件?

node.js - 使用Backbone.js框架如何进行ajax调用快速路由

javascript - Node Windows NPM 未安装

node.js - 我如何使用平均堆栈中的复选框更新我的待办事项状态,如果选中复选框,则将 true 放入 mongodb 数据库中,否则为 false

node.js - 如何将配置变量从服务器(Express)传递到 React App

node.js - 从 Node v6.7.0 升级到 v8.11.1 时性能糟糕