Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upError: Cannot find module 'eslint/lib/rules/no-unused-expressions #1069
Comments
This comment has been minimized.
This comment has been minimized.
|
Can you share the output of |
feross
added
the
need more info
label
Feb 19, 2018
This comment has been minimized.
This comment has been minimized.
|
If I do a fresh here is my current package.json, if that helps {
...,
"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"
}
}
|
This comment has been minimized.
This comment has been minimized.
LaurensBosscher
commented
Feb 28, 2018
|
I also have this on a new installation (on a fresh Macbook)
|
This comment has been minimized.
This comment has been minimized.
|
@on3iro It's not good that you don't have If I'm mistaken, or you get new info, feel free to comment or open a new issue. |
feross
closed this
Mar 1, 2018
lock
bot
locked as resolved and limited conversation to collaborators
May 30, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
on3iro commentedFeb 19, 2018
Hey,
is just installed v11 and unfortunately can't seem to get it to work at all.
Standard always throws the following error:
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