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 upCannot find module 'babel-eslint' (both standard and babel-eslint already installed locally) #1257
Comments
This comment has been minimized.
This comment has been minimized.
|
Just tried this in an empty directory, and it works for me: $ echo {} > package.json
$ npm add standard babel-eslint
+ babel-eslint@10.0.1
+ standard@12.0.1
$ echo 'export class Foo { test = 3 }' > index.js
$ standard --parser babel-eslint |
This comment has been minimized.
This comment has been minimized.
|
@inovramadani can you post your |
This comment has been minimized.
This comment has been minimized.
|
@inovramadani what happens if you run |
This comment has been minimized.
This comment has been minimized.
It does not work either for me.
It works with this one! |
This comment has been minimized.
This comment has been minimized.
As I explained in the beginning: I could notice the weird thing though, I use sublime 3 and use StandardFormat and SublimeLinter-contrib-standard packages, when I save the files get updated and reformat everything as expected when I put config below on package.json:
but always got the Cannot find module 'babel-eslint' error when I do |
This comment has been minimized.
This comment has been minimized.
|
@inovramadani ok the problem is that without |
This comment has been minimized.
This comment has been minimized.
|
@timoxley you are right, I forgot I have installed standard globally long time before. After installing eslint and babel-eslint also globally I can use |
inovramadani commentedMar 15, 2019
•
edited
What version of standard?
12.0.1
What operating system, Node.js, and npm version?
Windows 10
Node v10.15.1
NPM v.6.8.0
What did you expect to happen?
I install both standard and babel-eslint on devDependencies (locally).
I run
standard --parser babel-eslintI get the standard use babel-eslint parser to recognize babel code style and not stating it as style error
What actually happened?
I install both standard and babel-eslint on devDependencies (locally).
I run
standard --parser babel-eslintI get error: Cannot find module 'babel-eslint'
I read from previous issues 85 1167, it should be fixed when they are installed on the same level. But it does not happen on mine.
I have tried to put config below on package.json:
But it does not resolve the issue.