Gulp command not found after install

前端 未结 11 1437
抹茶落季
抹茶落季 2021-01-30 01:54

I installed gulp(globally) and it looks like it worked because it ran this code:

├── tildify@0.2.0
├── interpret@0.3.5
├── pretty-hrtime@0.2.1
├── deprecated@0.0         


        
11条回答
  •  南笙
    南笙 (楼主)
    2021-01-30 02:31

    Turns out that npm was installed in the wrong directory so I had to change the “npm config prefix” by running this code:

    npm config set prefix /usr/local
    

    Then I reinstalled gulp globally (with the -g param) and it worked properly.

    This article is where I found the solution: http://webbb.be/blog/command-not-found-node-npm

提交回复
热议问题