How to fix TypeError: Cannot read property ‘apply’ of undefined at /usr/lib/nodejs/gulp/bin/gulp.js

cd repository/
sudo npm uninstall gulp -g
sudo npm uninstall gulp
sudo npm install gulpjs/gulp-cli -g
npm install
gulp -v

CLI version: 2.2.0
Local version: 4.0.2

Try “npm run build” again.

 55   4 mon  
Popular