[英]Error “Cannot find module 'eslint-config-strict/es5'” when I try to create a commit
I'm trying to create commit but i'm getting this error 我正在尝试创建提交,但出现此错误
Cannot find module 'eslint-config-strict/es5'
I already add to my package.json the "eslint-config-strict": "^8.5.0",
and I have the package in my node_module
with the es5
inside of the eslint-config-strict
folder. 我已经添加到我的package.json的
"eslint-config-strict": "^8.5.0",
我有我的包node_module
与es5
的内部eslint-config-strict
的文件夹。
Is any one any idea why i'm getting this error? 有谁知道为什么我会收到此错误?
Thanks. 谢谢。
I found a possible cause. 我找到了可能的原因。 - It's the node.js version mismatch.
-这是node.js版本不匹配的原因。
I installed node_modules using node 10, but was trying to run eslint using node 8. 我使用节点10安装了node_modules,但尝试使用节点8运行eslint。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.