Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find module 'babel-eslint' (eslint/undefined) #85

Closed
mattdesl opened this issue Mar 25, 2015 · 11 comments

Comments

@mattdesl
Copy link

commented Mar 25, 2015

Using this as a local dependency has the following error:

Error: Use JavaScript Standard Style (https://github.com/feross/standard)
  cmd.js:0:0: Cannot find module 'babel-eslint'

Installing it globally and running that works.

Getting the same error in the SublimeLint plugin.

Versions:

standard@3.2.1
└── eslint@0.17.1 
@mattdesl

This comment has been minimized.

Copy link
Author

commented Mar 25, 2015

Doing npm install babel-eslint --save-dev seems to fix the issue as well.

@Flet

This comment has been minimized.

Copy link
Member

commented Mar 25, 2015

Really strange, I don't believe babel-eslint is used anywhere in this repo or any branches.

@feross

This comment has been minimized.

Copy link
Member

commented Mar 26, 2015

Weird. Can you try again with the latest version, 3.3.0?

@mattdesl

This comment has been minimized.

Copy link
Author

commented Mar 26, 2015

works now 👍

@mattdesl mattdesl closed this Mar 26, 2015

@baygeldin

This comment has been minimized.

Copy link

commented May 23, 2016

Hi! I've just faced with this problem and it turned out that standard was installed globally and babel-eslint was installed into nvm internal folder. Be careful when using nvm :)

@sethbergman

This comment has been minimized.

Copy link

commented Jul 1, 2016

Try this setting:

You don't need to add babel-eslint as a dependency. Just check this setting in Atom.

@otajor

This comment has been minimized.

Copy link

commented Apr 27, 2018

Just had the same error.

I had:

  • standard installed globally but not locally as a dependency in my project
  • babel-eslint installed locally but not globally

Once I added standard as a local dependency as well, it was fine.

@chevdor

This comment has been minimized.

Copy link

commented May 22, 2018

FYI:
Added with npm i -D babel-eslint and it still failed.
Installed globally npm i -g babel-eslint and it worked.

@feross

This comment has been minimized.

Copy link
Member

commented May 22, 2018

Yep, both standard and babel-eslint need to be installed at the same level, both local or both global.

@chevdor

This comment has been minimized.

Copy link

commented May 23, 2018

Even both local does not work.

@feross

This comment has been minimized.

Copy link
Member

commented May 23, 2018

@chevdor Please open a new issue with all the details of your situation.

@standard standard locked as resolved and limited conversation to collaborators May 23, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
7 participants
You can’t perform that action at this time.