我做了一个npm更新并开始使用eslint获得以下内容,但神秘的是babel-eslint和eslint版本没有更新。我该如何诊断问题所在。复制旧的node_modules文件夹会让它再次运行,但我很难比较每个软件包的lib版本。
/usr/local/bin/node /Users/Projects/node_modules/eslint/bin/eslint.js --format=checkstyle --stdin --stdin-filename test/email.js
TypeError: Cannot read property 'visitClass' of undefined
at monkeypatch (/Users/jinteki/Projects/foo-web/node_modules/babel-eslint/index.js:199:40)
at Object.exports.parse (/Users/jinteki/Projects/foo-web/node_modules/babel-eslint/index.js:410:5)
at parse (/Users/jinteki/Projects/foo-web/node_modules/eslint/lib/eslint.js:449:27)
at EventEmitter.module.exports.api.verify (/Users/jinteki/Projects/foo-web/node_modules/eslint/lib/eslint.js:603:15)
at processText (/Users/jinteki/Projects/babycents-web/node_modules/eslint/lib/cli-engine.js:201:27)
at CLIEngine.executeOnText (/Users/jinteki/Projects/foo-web/node_modules/eslint/lib/cli-engine.js:361:26)
at Object.cli.execute (/Users/jinteki/Projects/foo-web/node_modules/eslint/lib/cli.js:179:36)
at /Users/jinteki/Projects/foo-web/node_modules/eslint/bin/eslint.js:13:28
at ConcatStream.<anonymous> (/Users/jinteki/Projects/foo-web/node_modules/concat-stream/index.js:36:43)
at emitNone (events.js:72:20)