google / web-starter-kit

Web Starter Kit - a workflow for multi-device websites
http://developers.google.com/web/starter-kit
Apache License 2.0
18.42k stars 3.01k forks source link

gulp serve "Working directory changed to" issue #892

Open kmturley opened 8 years ago

kmturley commented 8 years ago

It seems that gulp server command has stopped working after updating my gulp version to:

gulp can't find gulpfile.babel.js file in the root folder and tried to walk the parent folder tree to find another file:

gulp serve
Working directory changed to ../

I solved this by specifying the file as a param, running the command:

gulp serve --gulpfile gulpfile.babel.js

A bit long, so a better way then was to change package.json and add the line:

"scripts": {
    "start": "gulp serve --gulpfile gulpfile.babel.js"
}

Which then allows you to run:

npm start