简体   繁体   中英

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.

Is any one any idea why i'm getting this error?

Thanks.

I found a possible cause. - It's the node.js version mismatch.

I installed node_modules using node 10, but was trying to run eslint using node 8.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM