No local gulp install found even after installing npm install -g gulp

后端 未结 4 1895
野的像风
野的像风 2020-12-13 01:22

I tried to install gulp by

npm install -g gulp

The output seems to be something like this. (i have skipped some logs)

npm          


        
相关标签:
4条回答
  • 2020-12-13 01:48

    I've recently run into the "Local gulp not found" error message. I was able to work past it by creating a symlink from the global node_modules directory to the local project directory where my gulpfile.js is located.

    0 讨论(0)
  • 2020-12-13 01:51

    Check /home/username/.npm directory: maybe groups/owner of files is root. Change to username:

    chown -R username.username /home/username/.npm
    
    0 讨论(0)
  • 2020-12-13 01:55

    I faced the same issue. Got it resolved by creating a link

    npm link gulp
    
    0 讨论(0)
  • 2020-12-13 02:05

    As pointed out in the doc, you should install it globally (you did that) and add it to your project dev deps (locally):

    npm install gulp --save-dev
    
    0 讨论(0)
提交回复
热议问题