Node JS NPM modules installed but command not recognized

前端 未结 6 796
我寻月下人不归
我寻月下人不归 2020-12-12 20:21

Node JS and NPM was working well before. Recently I have re-installed the Node JS, NPM and the problem started. After I install a module like example npm install -g bo

6条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-12 21:12

    Run npm config get prefix and check the correct npm path first and append the output to the PATH using command or adding manually.

    npm config get prefix
    C:\mydev\tools\npm\npm
    

    set PATH=%PATH%;C:\mydev\tools\npm\npm

提交回复
热议问题