Gulp command not found after install

前端 未结 11 1606
抹茶落季
抹茶落季 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:27

    I had this problem with getting "command not found" after install but I was installed into /usr/local as described in the solution above.

    My problem seemed to be caused by me running the install with sudo. I did the following.

    1. Removing gulp again with sudo
    2. Changing the owner of /usr/local/lib/node_modules to my user
    3. Installing gulp again without sudo. "npm install gulp -g"

提交回复
热议问题