0

我跑了npm install odata-server,但调用require('odata-server')失败并显示以下内容:

Using JayLint for code parsing

module.js:340
    throw err;
          ^
Error: Cannot find module './Types/Expressions/Visitors/ExpressionVisitor.js'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:362:17)
    at require (module.js:378:17)
    at Object.<anonymous> (/home/anewman/node_modules/odata-server/lib/jaydata/lib/index.js:28:1)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:362:17)
4

1 回答 1

1

尝试重新安装模块并检查丢失的文件是否存在。还请检查您的 NODE_PATH 设置,因为该库在下面找不到 acorn 解析器模块~/node_modules/odata-server/lib/jaydata/node-modules/acorn

于 2013-04-17T08:29:46.263 回答