eslint插件vue安装:EINVALIDTAGNAME

时间:2019-05-26 22:33:40

标签: javascript ubuntu vue.js build eslint

要在Ubuntu服务器上构建vue.js应用,我需要初始化eslint,我正在用以下代码行进行配置,然后在其中进行配置:

./node_modules/.bin/eslint --init

配置后,我得到了:

Checking peerDependencies of eslint-config-eslint:recommended,plugin:vue/essential@latest
The config that you've selected requires the following dependencies:

eslint-plugin-vue@latest eslint-config-eslint:recommended,plugin:vue/essential@latest error@[object Object]
? Would you like to install them now with npm?

我发现真正很奇怪的是error@[object Object],无论如何...我输入是,然后出现以下错误:

Installing eslint-plugin-vue@latest, eslint-config-eslint:recommended,plugin:vue/essential@latest, error@[object Object]
npm ERR! code EINVALIDTAGNAME
npm ERR! Invalid tag name "[object Object]": Tags may not have any characters that encodeURIComponent encodes.

有人可以帮忙吗?

0 个答案:

没有答案