question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to setup developer environment

See original GitHub issue

Tell 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:closed
  • Created 7 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

4reactions
mysticateacommented, Sep 26, 2016

I’m sorry, I will publish eslint-plugin-node@2.1.1 to resolve this soon.

1reaction
not-an-aardvarkcommented, Sep 25, 2016

@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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Don't be stuck at dev environment setup! | Rookie's Lab
Don't be stuck at dev environment setup! One of the worst feelings as a developer is not able to work on what you...
Read more >
Troubleshoot your Power BI developer environment setup
Can't connect to the Power BI service. Run the visual server with the command pbiviz start in your terminal's command line from the...
Read more >
I can't set up my dev environment and it's stressing me out
I've tried installing and reinstalling the things that aren't working properly, only to have them work temporarily or not work at all.
Read more >
Facing issue " Failed to install the app. Make sure you have ...
To make sure your environment is setup properly for android, go to the root of your react-native project.
Read more >
Can't setup development environment #27567 - GitHub
Describe the bug: as I said in here, yarn kbn bootstrap fails with an ERROR TypeError: Cannot read property 'replace' of undefined ....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found