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

`eslint --init` alwalys fails #11970

Closed
raind33 opened this issue Jul 9, 2019 · 2 comments

Comments

@raind33
Copy link

commented Jul 9, 2019

Tell us about your environment

  • **ESLint Version:**v6.0.1
  • **Node Version:**v10.14.0
  • **npm Version:**6.4.1

What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.
eslint --init

? How would you like to use ESLint? To check syntax, find problems, and enforce code style
? What type of modules does your project use? JavaScript modules (import/export)
? Which framework does your project use? Vue.js
? Where does your code run? (Press <space> to select, <a> to toggle all, <i> to invert selection)Browser
? How would you like to define a style for your project? Use a popular style guide
? Which style guide do you want to follow? Standard (https://github.com/standard/standard)
? What format do you want your config file to be in? JSON
Checking peerDependencies of eslint-config-plugin:vue/essential,standard@latest
Local ESLint installation not found.
The config that you've selected requires the following dependencies:

eslint-plugin-vue@latest eslint-config-plugin:vue/essential,standard@latest error@[object Object] eslint@latest
? Would you like to install them now with npm? Yes
Installing eslint-plugin-vue@latest, eslint-config-plugin:vue/essential,standard@latest, error@[object Object], eslint@latest
npm ERR! code EINVALIDTAGNAME
npm ERR! Invalid tag name "[object Object]": Tags may not have any characters that encodeURIComponent encodes.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2019-07-09T02_28_04_967Z-debug.log
Successfully created .eslintrc.json file in G:\user\esli
ESLint was installed locally. We recommend using this local copy instead of your globally-installed copy.

What did you expect to happen?
ESLint inits successfully.

What actually happened? Please include the actual, raw output from ESLint.
When i install the dependences, always encounter the above errors. In issues i have seen the same question, but i still do not understand the question and find the solution. And i have used different computers, such as windows, mac, but they still have the question.

Are you willing to submit a pull request to fix this bug?
no idea

@raind33 raind33 added bug triage labels Jul 9, 2019

@mysticatea mysticatea added accepted cli and removed triage labels Jul 9, 2019

@mysticatea

This comment has been minimized.

Copy link
Member

commented Jul 9, 2019

Thank you for your report.

I confirmed --init failed (but another error).

image

@raind33

This comment has been minimized.

Copy link
Author

commented Jul 9, 2019

Thank you for your report.

I confirmed --init failed (but another error).

image
I met what you said. The first init is the same question,but after the first time, it is always my asked question.

mysticatea added a commit that referenced this issue Jul 14, 2019

mysticatea added a commit that referenced this issue Jul 14, 2019

kaicataldo added a commit that referenced this issue Jul 16, 2019

Fix: --init with Vue.js failed (fixes #11970) (#11985)
* Fix: --init with Vue.js failed (fixes #11970)

* move 'naming.js' to 'shared' directory

* use naming utility
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.