How come npm install doesn't work on git bash

前端 未结 13 1202
天涯浪人
天涯浪人 2020-12-07 19:00

I have git bash open and I type in npm install and then it returns:

bash: npm command not found

I don\'t understand, because I

13条回答
  •  一生所求
    2020-12-07 19:43

    You need to define this #!/bin/bash start of you bash script

    #!/bin/bash
    npm install
    

提交回复
热议问题