You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.
NOTE: This is a continuation of my original ticket (#152), which is not yet resolved, and was prematurely closed, either automatically by the system or manually by @stevelacy who was helping me. Since I am unable to re-open the ticket, I guess here I am creating a new one.
The error states exactly what the issue is: AssertionError [ERR_ASSERTION]: Task function must be specified
Tasks are not specified.
You need to add a task to the gulpfile.js
Just add a task to you gulpfile.js such as one of the many in the Getting started guide
@stevelacy I checked out the getting started guide but did not see any video, and I don't need any recipes, (I don't think). I just want gulp to not break when I'm trying to follow this tutorial. Gulp looks like a useful tool, but I am not supposed to have to understand a deep-dive into it right now, I'm just following along with a tutorial. I have no idea what recipe I might need, if any.
Also, can you clarify where the video you are referencing is? I would love to watch it, but it is not on the link you provided. Here is what that "getting started guide" page looked like today (May 24, 2018):
As you can see, there is no video on this page.
Can't Find Gulp-Util
Now am getting an error:
Error: Cannot find module 'gulp-util'
If gulp-util is what is giving me the problem, and it is deprecated as referenced above, um ... where do I go from here?
Type git init and hit enter to initialize the downloaded repo for logging etc.
Since gulp 3 has been replaced by a new verson called "gulp-cli" remove any previously existing version of gulp:
npm rm --global gulp
Install the new gulp command line interface globally (meaning you don't have to install it in the root directory. You can install it from anywere and it will be available everywhere:
npm install --global gulp-cli
(This may be the same as npm install gulp-cli -g, but that is unclear)
Run npm install gulp -D (for some reason), as indicated here: https://gulpjs.com/
module.js:549
throw err;
^
Error: Cannot find module 'gulp-util'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (C:\ehw_git_repo\responsivebootstrap\gulpfile.js:2:13)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
To be clear, I didn't enter any command that had gulp-util in the name ... that phrase never came from my fingers.
Thanks again for all your help so far.
The text was updated successfully, but these errors were encountered:
@codewizard13 the video @stevelacy mentioned is the one that you referred to in your original post. It shows how to install nodejs and goes into details about what each step on the gulp website does. He even says not to worry about the deprecation warnings that show up when you install gulp.
It seems like you're trying to follow different tutorials and missing some steps or adding unnecessary steps. At the bottom of the responsivebootstrap readme, it shows how to install that repository, and one of the steps is to run npm install in the directory after cloning it from GitHub. This step will install any dependencies that that repository is using (one of them is gulp-util). This repository already has a gulpfile.js which means that the touch gulpfile.js step is not necessary.
NOTE: This is a continuation of my original ticket (#152), which is not yet resolved, and was prematurely closed, either automatically by the system or manually by @stevelacy who was helping me. Since I am unable to re-open the ticket, I guess here I am creating a new one.
Unclear Tasks and Missing Video
@stevelacy said (in the previous ticket #152):
@stevelacy I checked out the getting started guide but did not see any video, and I don't need any recipes, (I don't think). I just want gulp to not break when I'm trying to follow this tutorial. Gulp looks like a useful tool, but I am not supposed to have to understand a deep-dive into it right now, I'm just following along with a tutorial. I have no idea what recipe I might need, if any.
Also, can you clarify where the video you are referencing is? I would love to watch it, but it is not on the link you provided. Here is what that "getting started guide" page looked like today (May 24, 2018):
As you can see, there is no video on this page.
Can't Find Gulp-Util
Now am getting an error:
If gulp-util is what is giving me the problem, and it is deprecated as referenced above, um ... where do I go from here?
The Repo I'm Using
If it helps to reproduce the error, this is the repository I am using: https://github.com/planetoftheweb/responsivebootstrap
Steps to Reproduce
NOTE: I'm using Windows so I'll give the instructions presuming Git Bash and node are installed already.
Create a master git folder in root:
mkdir /c/git_main
CD into git_main
cd /c/git_main
Type
git init
to create the .git hidden folder.Download the responsivebootstrap git repo to local hard drive:
git clone https://github.com/planetoftheweb/responsivebootstrap.git
CD into new responsivebootstrap folder.
Type
git init
and hit enter to initialize the downloaded repo for logging etc.Since gulp 3 has been replaced by a new verson called "gulp-cli" remove any previously existing version of gulp:
npm rm --global gulp
Install the new gulp command line interface globally (meaning you don't have to install it in the root directory. You can install it from anywere and it will be available everywhere:
npm install --global gulp-cli
(This may be the same as
npm install gulp-cli -g
, but that is unclear)Run
npm install gulp -D
(for some reason), as indicated here: https://gulpjs.com/https://i.imgur.com/kV7DtjP.png
Run
touch gulpfile.js
.Run
gulp
.Get error:
To be clear, I didn't enter any command that had
gulp-util
in the name ... that phrase never came from my fingers.Thanks again for all your help so far.
The text was updated successfully, but these errors were encountered: