简体   繁体   English

尝试创建提交时出现错误“找不到模块'eslint-config-strict / es5'”

[英]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_modulees5的内部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.

相关问题 Mac WebStorm错误:无法找到模块'eslint-config-airbnb' - Mac WebStorm Error: Cannot find module 'eslint-config-airbnb' 找不到模块./dist/es5 node.js - cannot find module ./dist/es5 node.js Javascript Eslint 错误:找不到模块“optionator” - Javascript Eslint Error: Cannot find module 'optionator' 找不到不是es5的javascript的行 - Cannot find the line of the javascript that is not es5 错误 - 找不到模块“config” - Error - Cannot find module 'config' 尝试要求我的javascript文件时找不到模块“ models / PermissionModel”错误 - Cannot find module 'models/PermissionModel' error when I try to require my javascript file UnhandledPromiseRejectionWarning:错误:当我尝试运行我的代码时找不到模块“../database/db” - UnhandledPromiseRejectionWarning: Error: Cannot find module '../database/db' when i try to run my code 我不断收到错误:找不到模块'./config.json/' - I keep getting Error: Cannot find module './config.json/' ESLint 8.31.0“错误:无法加载在‘.eslintrc.js » eslint-config-standard’中声明的插件‘import’:找不到模块‘array.prototype.flatmap’” - ESLint 8.31.0 "Error: Failed to load plugin 'import' declared in '.eslintrc.js » eslint-config-standard': Cannot find module 'array.prototype.flatmap" 错误:在 VUEJS(ESLINT)中找不到模块“babel-code-frame” - Error: Cannot find module 'babel-code-frame' in VUEJS ( ESLINT)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM