nodenv / node-build

Install NodeJS versions
MIT License
268 stars 80 forks source link

Nodenv not compatible with windows 11? #865

Closed sanketb9175 closed 4 months ago

sanketb9175 commented 4 months ago

Hi there! I'm new to nodenv and trying to run it on windows 11. However, I'm facing below error and it seems nodenv is not compatible with windows 11. Is there a fix for this? Am I missing anything?

npm ERR! notsup Unsupported platform for nodenv@0.1.0: wanted {"os":"!win32"} (current: {"os":"win32"})
npm ERR! notsup Valid os:  !win32
npm ERR! notsup Actual os: win32
sanketb9175 commented 4 months ago

Its me again! After some research and going through the documentation, running below helped. Felt like a beginners mistake! :) npm install node-env-run --save-dev

jasonkarns commented 4 months ago

node-env-run is not affiliated with or related to nodenv in any way.

but no, nodenv is not officially supported on windows. nodenv (like its upstream parent rbenv) is built on POSIX and requires compliant bash.