Fixing npm path in Windows 8 and 10

前端 未结 18 1864
孤街浪徒
孤街浪徒 2020-11-22 15:30

Have done a lot of googling, tried reinstalling node.js using the official installer, but my npm pathing still doesn\'t work.

This doesn\'t work

npm          


        
18条回答
  •  一生所求
    2020-11-22 15:42

    When you're on Windows but running VS Code in Windows Subsystem for Linux like this

    linux@user: /home$ code .

    you actually want to install NodeJs on Linux with

    linux@user: /home$ sudo apt install nodejs

    Installing NodeJs on Windows, modifying PATH and restarting will get you no results.

提交回复
热议问题