NPM -bash command not found

后端 未结 1 527
眼角桃花
眼角桃花 2020-12-06 18:17

I am trying to run through nodeschool.io exercises. I am having trouble running their packages.

The first package I installed:

$ npm install -g lear         


        
相关标签:
1条回答
  • 2020-12-06 18:50

    The functional-javascript-workshop executable is in /Users/name/npm/bin, which is not in your PATH variable, add this to your .bashrc or .bash_profile file:

    export PATH=$PATH:/Users/name/npm/bin
    

    Then you should be able to run functional-javascript-workshop

    0 讨论(0)
提交回复
热议问题