npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

i have installed npm, but still i get this error

When i type npm -v i get this as the output

root@DESKTOP-OBENNGA:~# npm -v
: not foundram Files/nodejs/npm: 3: /mnt/c/Program Files/nodejs/npm:
: not foundram Files/nodejs/npm: 5: /mnt/c/Program Files/nodejs/npm:
/mnt/c/Program Files/nodejs/npm: 6: /mnt/c/Program Files/nodejs/npm: Syntax error: word unexpected (expecting “in”)

I also had the same problem and needed everyone’s help!

Are you using WSL on Windows? I found the error mentioned in a couple of posts: