wesbos / eslint-config-wesbos

No-Sweatโ„ข Eslint and Prettier Setup - with or without VS Code
2.74k stars 419 forks source link

ERR spawn npm ENOENT on Windows 10. #73

Closed ex-jedi closed 3 years ago

ex-jedi commented 3 years ago

Just started getting the following error when attempting a local install:

install-peerdeps v3.0.0
ERR spawn npm ENOENT

It's been working for ages just fine. Any ideas what this could be?

Ta

Asjas commented 3 years ago

Hi, @ex-jedi

What version of Node.js and NPM are you using?

There are some issues with npm 7.x, you can try to use npm 6.x and see if it works. ๐Ÿ™‚

ex-jedi commented 3 years ago

Thanks @Asjas.

I'm on NPM 6.14.10 & Node 14.15.4.

Asjas commented 3 years ago

Okay, I just checked the install-peerdeps Github repo and there is a reported issue with the v3.0.0 release that happened 4 days ago. Other Windows 10 users are reporting the same issue and someone in Slack also reported it. #123

You can use the following command to use the v2.0.2 release of install-peerdeps @ex-jedi๐Ÿ™‚

npx install-peerdeps@v2.0.2 --dev eslint-config-wesbos 
ex-jedi commented 3 years ago

Thanks @Asjas that's got it working! ๐Ÿ‘๐Ÿพ๐Ÿ‘๐Ÿพ