opened
on3iro
username_0
Hey,

is just installed **v11** and unfortunately can't seem to get it to work at all.
Standard always throws the following error:

```bash
Error: Cannot find module 'eslint/lib/rules/no-unused-expressions'
```

If I manually install eslint I get a `Resolve  error: unable to load resolver "node"`

Any idea what could cause this and how I can fix it?

Thanks in advance
Error: Cannot find module 'eslint/lib/rules/no-unused-expressions
issue
created
feross
username_1
Can you share the output of `npm ls eslint --depth=99`?
comment
created
on3iro
username_0
If I do a fresh `npm i` and run `npm ls eslint --depth=99` it just returns `(empty)`

here is my current package.json, if that helps

```json
{
  ...,
  "scripts": {
    "start": "nf start",
    "api": "node internals/api.js",
    "client": "cross-env NODE_ENV=development webpack-dev-server --config webpack.config.js",
    "build": "rimraf dist && cross-env NODE_ENV=production webpack --config webpack.config.js --progress --profile --colors",
    "flow": "flow",
    "lint:js": "standard",
    "lint:js:fix": "standard --fix",
    "lint:css": "stylelint './src/**/*.js*'",
    "test:clean": "rimraf ./coverage",
    "pretest": "npm run test:clean",
    "test": "cross-env NODE_ENV=test jest --verbose",
    "test:coverage": "cross-env NODE_ENV=test jest --coverage",
    "test:watch": "cross-env NODE_ENV=test jest --watch",
    "test:coveralls": "cross-env NODE_ENV=test jest --coverage --runInBand && cat ./coverage/lcov.info | coveralls"
  },
  "greenkeeper": {
    "ignore": [
      "babel-eslint"
    ]
  },
  "jest": {
    "modulePaths": [
      "src"
    ],
    "moduleFileExtensions": [
      "js",
      "jsx"
    ],
    "collectCoverageFrom": [
      "**/src/**/*.{js,jsx}",
      "!**/src/themes/**",
      "!**/src/App.jsx",
      "!**/src/global-styles.js",
      "!**/src/index.js",
      "!**/src/store.js",
      "!**/src/rootReducer.js"
    ],
    "moduleNameMapper": {
      "\\.(jpeg|jpg|png|gif|eot|webp|svg|ttf|woff2|mp3|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mocks__/fileMock.js",
      "\\.(css|scss)$": "<rootDir>/__mocks__/styleMock.js"
    },
    "coverageReporters": [
      "json",
      "lcov",
      "text"
    ],
    "setupTestFrameworkScriptFile": "./enzyme-setup.js"
  },
  "standard": {
    "parser": "babel-eslint",
    "plugins": [
      "flowtype"
    ],
    "ignore": [
      "**/dist/",
      "**/tests/",
      "**/flow-typed"
    ],
    "globals": [
      "describe",
      "it",
      "expect",
      "jest",
      "HTMLElement"
    ]
  },
  "license": "MIT",
  "private": true,
  "author": {
  },
  "contributors": [],
  "homepage": "-",
  "dependencies": {
    "axios": "^0.17.1",
    "babel-polyfill": "^6.26.0",
    "react": "^16.2.0",
    "react-dom": "^16.2.0",
    "react-dom-factories": "^1.0.2",
    "react-redux": "^5.0.7",
    "react-router-dom": "^4.2.2",
    "recompose": "^0.26.0",
    "redux": "^3.7.2",
    "redux-devtools": "^3.4.1",
    "redux-loop": "^4.2.4",
    "reselect": "^3.0.1",
    "styled-components": "^3.1.6",
    "styled-normalize": "^4.0.0"
  },
  "engines": {},
  "devDependencies": {
    "@4so-fourseasons/stylelint-config-sane-order": "^1.0.2",
    "babel-core": "^6.26.0",
    "babel-eslint": "8.0.3",
    "babel-jest": "^22.2.2",
    "babel-loader": "^7.1.2",
    "babel-plugin-styled-components": "^1.5.0",
    "babel-preset-env": "^1.6.1",
    "babel-preset-flow": "^6.23.0",
    "babel-preset-react": "^6.24.1",
    "babel-preset-stage-3": "^6.24.1",
    "coveralls": "^3.0.0",
    "cross-env": "^5.1.1",
    "enzyme": "^3.2.0",
    "enzyme-adapter-react-16": "^1.1.1",
    "eslint-loader": "^1.9.0",
    "eslint-plugin-flowtype": "^2.44.0",
    "file-loader": "^1.1.6",
    "flow-bin": "^0.66.0",
    "flow-webpack-plugin": "^1.2.0",
    "foreman": "^2.0.0",
    "friendly-errors-webpack-plugin": "^1.6.1",
    "html-webpack-plugin": "^2.30.1",
    "image-webpack-loader": "^4.1.0",
    "jest": "^22.3.0",
    "json-server": "^0.12.1",
    "jsx-loader": "^0.13.2",
    "react-hot-loader": "^3.1.3",
    "react-test-renderer": "^16.2.0",
    "rimraf": "^2.6.2",
    "standard": "^11.0.0",
    "standard-loader": "^6.0.1",
    "stylelint": "^9.0.0",
    "stylelint-config-styled-components": "^0.1.1",
    "stylelint-custom-processor-loader": "^0.4.0",
    "stylelint-processor-styled-components": "^1.2.2",
    "webpack": "^3.11.0",
    "webpack-dev-server": "^2.11.1",
    "webpack-merge": "^4.1.1"
  }
}

```
comment
created
feross
username_1
@username_0 It's not good that you don't have `eslint` installed in your local node_modules folder. Something is seriously wrong... especially given that `standard` (which depends on `eslint`) is in your `package.json`. Whatever is wrong with your tree, it's not a `standard` issue, so I'm going to close this issue. 

If I'm mistaken, or you get new info, feel free to comment or open a new issue.
comment
closed
feross
username_1
issue