Fixing npm path in Windows 8 and 10

前端 未结 18 1870
孤街浪徒
孤街浪徒 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:43

    You can follow the following steps:

    • Search environment variables from start menu's search box.
    • Click it then go to Environment Variables
    • Click PATH
    • click Edit
    • Click New and try to copy and paste your path for 'bin' folder [find where you installed the node] for example according to my machine 'C:\Program Files\nodejs\node_modules\npm\bin'

    If you got any error. try the another step:

    • Click New, then browse for the 'bin' folder

提交回复
热议问题