eslint-config-wesbos icon indicating copy to clipboard operation
eslint-config-wesbos copied to clipboard

WSL + Create React App result: ERR undefined

Open Dujota opened this issue 2 years ago • 5 comments

just following the instructions on adding no sweat eslint to CRA, but it fails on install.

couldnt find anything specific, but I think this may some issue with a dependency? reference: https://stackoverflow.com/questions/66967270/err-undefined-while-installing-airbnb-eslint

Has anyone encountered this issue?

npx install-peerdeps --dev eslint-config-wesbos
install-peerdeps v3.0.3
Installing peerdeps for eslint-config-wesbos@latest.
npm install [email protected] @babel/core@^7.16.0 @types/node@^16.11.12 
@typescript-eslint/eslint-plugin@^5.6.0 @typescript-eslint/parser@^5.6.0 eslint@^8.4.1 
eslint-config-airbnb@^19.0.2 eslint-config-airbnb-typescript@^16.1.0 eslint-config-prettier@^8.3.0 
eslint-plugin-html@^6.2.0 eslint-plugin-import@^2.25.3 eslint-plugin-jsx-a11y@^6.5.1 eslint-plugin-prettier@^4.0.0 
eslint-plugin-react@^7.27.1 eslint-plugin-react-hooks@^4.3.0 prettier@^2.5.1 
typescript@^4.5.2 @babel/eslint-parser@^7.16.3 @babel/preset-react@^7.16.0 --save-dev

ERR undefined

Dujota avatar Mar 23 '22 23:03 Dujota

@Dujota ERR undefined is a common npm installation error if the version of Node is too new. Can you tell us which version of Node.js you are using? Node 14 and Node 16 should work and you can use either of them 🙂

Asjas avatar Mar 24 '22 08:03 Asjas

@Asjas i am using v16.14.0 (lts)

Dujota avatar Mar 26 '22 03:03 Dujota

What happens if you try Node 14?

Asjas avatar Mar 26 '22 06:03 Asjas

@Dujota Was having this same issue on a new project. I had no problems after switching to v14.18.1. Thanks @Asjas

7chris71000 avatar Apr 05 '22 16:04 7chris71000

I solved it. Just uninstall their own linter. npm uninstall eslint eslint-config-next

saysonjerald avatar Apr 27 '22 14:04 saysonjerald