nodejs / node

Node.js JavaScript runtime ✨🐢🚀✨
https://nodejs.org
Other
104.27k stars 28.06k forks source link

NodeJS v22 not working with Powershell or Windows Powershell #52770

Closed TheB3rX closed 2 weeks ago

TheB3rX commented 2 weeks ago

Version

22.0.0

Platform

Microsoft Windows NT 10.0.22631.0 x64

Subsystem

No response

What steps will reproduce the bug?

Install NodeJS 22.0.0 Via winget or official installer, node -v works like a charm but npm -v shows code 'MODULE_NOT_FOUND'

How often does it reproduce? Is there a required condition?

Bug only happens on Powershell or Windows Powershell, CMD works fine with npm -v

What is the expected behavior? Why is that the expected behavior?

image

Using npm shoud be possible, not MODULE_NOT_FOUND

What do you see instead?

image

Additional information

No response

targos commented 2 weeks ago

Duplicate of https://github.com/nodejs/node/issues/52682