Home > Net >  Can't run npm on windows
Can't run npm on windows

Time:04-30

I installed node 16.15.0 and "node -v" works fine." However "npm -v" or any other npm command gives the error message "The syntax of the command is incorrect."

CodePudding user response:

Have you try to close and re open the terminal ? If yes, you can also check env variable

CodePudding user response:

Yes. I closed and reopened the terminal. I uninstalled ad reinstalled node. I rebooted my computer. node and npm are both in my path. Nothing helped.

  • Related