[英]"Resolve error: unable to load resolver "node""
I have spent the day wrestling with standardJS and package.json in a project.我花了一天时间在项目中与 standardJS 和 package.json 搏斗。
Just when I thought I had fixed some no-def issues when upgrading to standard 11, I now face multiple:就在我认为升级到标准 11 时我已经解决了一些无定义问题时,我现在面临多个问题:
error Resolve error: unable to load resolver "node" import/no-duplicates
So going to back to basics, do I really need "eslint" installed for standardJS to work?所以回到基础,我真的需要为 standardJS 安装“eslint”才能工作吗? The project does seem to require "babel-eslint" for some arrow functions to work .
该项目似乎确实需要“babel-eslint”才能使某些箭头功能正常工作。
Is there anything else I can do to try resolve these CI errors ?我还能做些什么来尝试解决这些CI 错误吗?
Maybe it's a Travis issue, or a npm i
and meteor npm i
issue.可能是 Travis 问题,或者是
npm i
和meteor npm i
问题。
I had to explicitly installeslint-import-resolver-node
.我必须明确安装
eslint-import-resolver-node
。 There was a recent update to the eslint-plugin-import
that did not correctly link eslint-import-resolver-node
. eslint-plugin-import
的最新更新未正确链接eslint-import-resolver-node
。 The following command will install the missing package and get things working:以下命令将安装缺少的 package 并使一切正常运行:
npm install -D eslint-import-resolver-node
For some reason, npm 6 install was messing around with meteor npm
's in-built version at 4. The CI fix was to override the default Travis install phase . 由于某些原因,npm 6安装与
meteor npm
的内置版本4 meteor npm
。CI修复程序将覆盖默认的Travis安装阶段 。
Nonetheless I am still wondering if I need eslint dependency in my project. 尽管如此,我仍然想知道我的项目中是否需要eslint依赖。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.