#NPM not showing in Powershell

6 messages · Page 1 of 1 (latest)

fervent folio

i went to https://nodejs.org/en/download/prebuilt-installer downloaded node went through the installation but npm -v in powershell doesnt work i have probably installed it wrong its been a while since ive installed Node.js as i had it on my old pc when a first made my discord bot now ive moved the code over to a new pc but need node , npm etc

frail etherBOT
  • Consider reading #how-to-get-help to improve your question!
  • Explain what exactly your issue is.
  • Post the full error stack trace, not just the top part!
  • Show your code!
  • Issue solved? Press the button!
  • Marked as resolved by OP
heady mortar

node, npm and such is installed, but Powershell is preventing you to use it because npm command is actually a Powershell script, which by default unsigned ones are can't be run without changing the execution policy

If you're on Windows 11, Go to Settings > System > For Developers and at around the bottom you'll see PowerShell option, expand it and tick the box.

Maybe enabling Developer Mode from the same page might work and you might want to try that instead but not sure.

heady mortar