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.

eslint --init fails with EINVALIDTAGNAME

See original GitHub issue

Hi,

I have a zero npm package with nothing in it. I am trying to initialize eslint config.

But there is a problem I can’t figure out: error@[object Object] tag for package error

Here is the log

» node -v
v8.9.4
» npm -v
6.4.1
» eslint -v
v5.9.0
» eslint --init
? How would you like to configure ESLint? 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-standard@latest
Local ESLint installation not found.
The config that you've selected requires the following dependencies:

eslint-config-standard@latest error@[object Object] eslint@latest
? Would you like to install them now with npm? Yes
Installing eslint-config-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!     /Users/user/.npm/_logs/2018-11-15T06_15_57_861Z-debug.log
Successfully created .eslintrc.json file in /Users/user/app
ESLint was installed locally. We recommend using this local copy instead of your globally-installed copy.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
liyan-webcommented, Jan 3, 2019

I have the same problem. How should I solve it?

0reactions
platinumazurecommented, Apr 12, 2019

@ahmedkrmn If you read the rest of the issue, you’ll see that the original poster had a problem with a Nexus repository. If you think you have a different problem, please open a new issue and provide more details about your situation. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix 'eslint --init fails'? - Stack Overflow
This is for Mac, node v10.10.0,npm 6.4.1 eslint --init ? How would you like to use ESLint? To check syntax, find problems, and...
Read more >
eslint/eslint - Gitter
Installing eslint-config-airbnb-base@latest, error@[object Object], eslint@latest npm ERR! code EINVALIDTAGNAME npm ERR! Invalid tag name "[object Object]": ...
Read more >
eslint - npm
Note: eslint --init is intended for setting up and configuring ESLint ... The first value is the error level of the rule and...
Read more >
Getting Started with ESLint - Pluggable JavaScript Linter
use `eslint-config-semistandard` shared config # npm 6.x npm init ... The first value is the error level of the rule and can be...
Read more >
12. How to install npm ESLint plugin in the application and ...
In this video, we will see how to install the npm ESLint plugin from the npm packages and implement the plugin in the...
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