ahmadawais / WPGulp

An advanced Gulp workflow for WordPress development with extensive documentation. Used by 40,000+ themes and plugins.
https://twitter.com/MrAhmadAwais/
MIT License
1.77k stars 303 forks source link

Issues with npm start after updating to Mojave on Mac #128

Closed saltnpixels closed 5 years ago

saltnpixels commented 5 years ago

Is your feature request related to a problem? Please describe. When I run npm start I get an error:

[11:44:17] Local gulp not found in ~/Dropbox/projects/clients/MadDrone/mad
[11:44:17] Try running: npm install gulp
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! your-project@1.0.0 start: `gulp`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the your-project@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/eric/.npm/_logs/2018-10-21T15_44_18_007Z-debug.log

I tried running install gulp but got nothing working. Any ideas?

saltnpixels commented 5 years ago

Fixed.

Changed line in package.json from github:gulpjs/gulp#4.0

to

"gulp": "^4.0.0",

reran npm install.

Or just run: npm install gulp@next

lspoor commented 5 years ago

I had a similar problem when trying to do npm install caused by github:gulpjs/gulp#4.0 in my package.json, why is this used and not use "gulp": "^4.0.0",

KevinHuddy commented 5 years ago

I had problem setting up a project on a new computer this morning and it was caused by the same problem! Fixed by @saltnpixels message.

screenshot 2018-10-23 12 58 33

ahmadawais commented 5 years ago

This should be fixed now in #129 otherwise open it again.

parys-github commented 5 years ago

Thanks, Ahmad. Release 2.7.0 fixes all these frustrating problems with the installer :-) Thanks and respect for you buddy.

ahmadawais commented 5 years ago

@parys-github glad to have helped. Just released v2.8 with another minor fix.

You know you can always support my open source work →

Peace! ✌️