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:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.