简体   繁体   English

“解决错误:无法加载解析器“节点””

[英]"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 imeteor 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.

相关问题 构建时出现奇怪的Websocket错误-“无法解决websocket / lib / BufferUtil”? - Odd Websocket Error at Build Time - “Unable to Resolve websocket/lib/BufferUtil”? 如何解决“无法解决某些模块oracledb”? - How to resolve “Unable to resolve some modules oracledb”? 流星无法解决某些模块 - meteor unable to resolve some modules 流星:无法解析模块:“反应/ dom” - Meteor: unable to resolve modules: “react/dom” 尝试在 mac 上打开 openssl 私钥文件时出现“无法加载私钥”错误 - "unable to load Private Key" error when try to open openssl private key file on mac TypeError:无法在字符串“无法加载地图”上创建属性“ mapTypeId” - TypeError: Cannot create property 'mapTypeId' on string 'Unable to load the map' Error in meteor 角流星(版本 1 .3.9):无法解析模块“下划线” - angular meteor (version1 .3.9) : Unable to resolve module "underscore" 无法加载客户端证书私钥文件 - Unable to load client certificate private key file 无法将JavaScript库加载到Meteor应用程序中 - Unable to load javascript library into Meteor app 从浏览器动态将CSS文件加载到节点 - Load a css file to node dynamically from browser
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM