Unable to setup developer environment
See original GitHub issueTell us about your environment
- ESLint Version: Latest
- Node Version: 6.5.0
- npm Version: 3.10.8
What did you do? Please include the actual source code causing the issue.
I forked eslint and followed the developer guide up till step 5. I then ran npm test
.
What did you expect to happen?
Expected tests to pass successfully.
What actually happened? Please include the actual, raw output from ESLint.
When I ran npm test
i got the following error:
Oops! Something went wrong! ESLint couldn’t find the plugin “eslint-plugin-node”. This can happen for a couple different reasons: If ESLint is installed globally, then make sure eslint-plugin-node is also installed globally. A globally-installed ESLint cannot find a locally-installed plugin. If ESLint is installed locally, then it’s likely that the plugin isn’t installed correctly. Try reinstalling by running the following:
npm i eslint-plugin-node@latest --save-dev
If you still can’t figure out the problem, please stop by https://gitter.im/eslint/eslint to chat with the team…
eslint-plugin-node was in my node_modules folder. However it had an unfulfilled peer dependency. When I ran npm list
i got this error:
npm ERR! peer dep missing: eslint@>=2.0.0, required by eslint-plugin-node@2.1.0
npm install eslint --save
causes this error though:
npm ERR! Windows_NT 10.0.10586 npm ERR! argv “C:\Program Files\nodejs\node.exe” “C:\Users\Jeremy\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js” “install” “eslint” “–save” npm ERR! node v6.5.0 npm ERR! npm v3.10.7 npm ERR! code ENOSELF npm ERR! Refusing to install eslint as a dependency of itself npm ERR! npm ERR! If you need help, you may report this error at: npm ERR! https://github.com/npm/npm/issues npm ERR! Please include the following file with any support request: npm ERR! C:\Users\Jeremy\Desktop\LibrariesAndTools\eslint\eslint\npm-debug.log
Any assistance would be greatly appreciated. Thank you.
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (9 by maintainers)
Top GitHub Comments
I’m sorry, I will publish
eslint-plugin-node@2.1.1
to resolve this soon.@kaicataldo The issue is this line, which was just added in the latest release. It’s trying to require() a file within
eslint
, and throwing because it’s not there.