yeswework / fabrica-dev-kit

A toolkit for faster, smoother WordPress 5 development
https://fabri.ca/
MIT License
274 stars 27 forks source link

Unable to run gulp on first install #4

Closed bradymwilliams closed 7 years ago

bradymwilliams commented 7 years ago
➜  dev git:(master) /usr/local/lib/node_modules/gulp/bin/gulp.js:129
    gulpInst.start.apply(gulpInst, toRun);
                  ^

TypeError: Cannot read property 'apply' of undefined
    at /usr/local/lib/node_modules/gulp/bin/gulp.js:129:19
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickDomainCallback (internal/process/next_tick.js:122:9)
andrewstaffell commented 7 years ago

Hi @bradymwilliams, looks like you need to update the version of gulp-cli installed globally. Check the version with gulp -v – it needs to be 1.2.2. If it's below that, update with npm install gulpjs/gulp-cli -g.

Then try running ./setup.rb --reinstall which will hopefully save you having to delete everything and start over. Let me know how you get on!

grahamharper commented 7 years ago

I'm having the same issue. I tried npm install gulpjs/gulp-cli -g followed by ./setup.rb --reinstall but still getting the same error.

andrewstaffell commented 7 years ago

@grahamharper OK, thanks for the feedback, can you confirm the output from gulp -v and we'll investigate further. Actually, could you also give me the output from node -v?

grahamharper commented 7 years ago

I actually just managed to resolve the issue, I had an old version of gulp that npm rm --global gulp wouldn't remove so running sudo rm /usr/local/bin/gulp got rid of it so I could run npm install --global gulp-cli so gulp is working now.

Thanks.

andrewstaffell commented 7 years ago

Ah that's good to hear, perhaps @bradymwilliams could try that too if still having problems. Thanks a lot.