Gulp command not found after install

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

    Not sure why the question was down-voted, but I had the same issue and following the blog post recommended solve the issue. One thing I should add is that in my case, once I ran:

    npm config set prefix /usr/local
    

    I confirmed the npm root -g was pointing to /usr/local/lib/node_modules/npm, but in order to install gulp in /usr/local/lib/node_modules, I had to use sudo:

    sudo npm install gulp -g

提交回复
热议问题