After installation of Gulp: “no command 'gulp' found”

后端 未结 9 2196
悲&欢浪女
悲&欢浪女 2020-11-28 17:45

After installing gulp.js via npm, I receive a no command \'gulp\' found error when running the gulp command from the same directory it was installe

相关标签:
9条回答
  • 2020-11-28 18:40

    in my case there was only on issue, just put "gulp":"gulp" in the script portion, of package.json, and then use command npm run gulp.

    0 讨论(0)
  • 2020-11-28 18:42

    I solved the issue removing gulp and installing gulp-cli again:

    rm /usr/local/bin/gulp
    npm install -g gulp-cli
    
    0 讨论(0)
  • 2020-11-28 18:50

    Installing on a Mac - Sierra - After numerous failed attempts to install and run gulp globally via the command line using several different instructions I found I added this to my path and it worked:

    export PATH=/usr/local/Cellar/node/7.6.0/libexec/npm/bin/:$PATH
    

    I got that path from the text output when installing gulp.

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