question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when running gulp right after the install

See original GitHub issue

Hi, and thanks a lot for this generator.

I get an error that I haven’t managed to solve when running gulp right after installing the generator.

Any help appreciated. Thanks in advance!

$ gulp
/home/ubuntu/workspace/gulpfile.js:159
      imagemin.gifsicle({interlaced: true}),
              ^

SyntaxError: Unexpected token .
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:373:25)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at execute (/home/ubuntu/.nvm/versions/node/v4.4.3/lib/node_modules/gulp-cli/lib/versioned/^4.0.0-alpha.2/index.js:32:3)
    at Liftoff.handleArguments (/home/ubuntu/.nvm/versions/node/v4.4.3/lib/node_modules/gulp-cli/index.js:150:63)
    at Liftoff.<anonymous> (/home/ubuntu/.nvm/versions/node/v4.4.3/lib/node_modules/gulp-cli/node_modules/liftoff/index.js:193:16)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:16 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
DarinLevesquecommented, Jun 15, 2016

I do. I’ll give that a whirl after dinner and let you know what I find out.

1reaction
DarinLevesquecommented, Jun 15, 2016

Interesting. Now after a yo jekyllized:update running gulp gives me this output:

assert.js:90
  throw new assert.AssertionError({
  ^
 AssertionError: Task never defined: site:tmp
    at getFunction (C:\Users\Darin\Google Drive\sites\JoB\node_modules\gulp\node_modules\undertaker\lib\helpers\normaliz
eArgs.js:15:5)
    at arrayMap (C:\Users\Darin\Google Drive\sites\JoB\node_modules\gulp\node_modules\undertaker\node_modules\lodash.map
\index.js:34:21)
    at map (C:\Users\Darin\Google Drive\sites\JoB\node_modules\gulp\node_modules\undertaker\node_modules\lodash.map\inde
x.js:138:10)
    at normalizeArgs (C:\Users\Darin\Google Drive\sites\JoB\node_modules\gulp\node_modules\undertaker\lib\helpers\normal
izeArgs.js:19:10)
    at Gulp.series (C:\Users\Darin\Google Drive\sites\JoB\node_modules\gulp\node_modules\undertaker\lib\series.js:13:14)

    at Object.<anonymous> (C:\Users\Darin\Google Drive\sites\JoB\gulpfile.js:13:30)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at execute (C:\Users\Darin\AppData\Roaming\npm\node_modules\gulp-cli\lib\versioned\^4.0.0-alpha.2\index.js:33:18)
    at Liftoff.handleArguments (C:\Users\Darin\AppData\Roaming\npm\node_modules\gulp-cli\index.js:150:63)
    at Liftoff.<anonymous> (C:\Users\Darin\AppData\Roaming\npm\node_modules\gulp-cli\node_modules\liftoff\index.js:193:1
6)
    at module.exports (C:\Users\Darin\AppData\Roaming\npm\node_modules\gulp-cli\node_modules\flagged-respawn\index.js:17
:3)
Read more comments on GitHub >

github_iconTop Results From Across the Web

gulp command not found - error after installing gulp
Running npm ls and npm ls -g shows that they are installed, but the CMD can not find them due to the missing...
Read more >
Quick fix for "gulp: command not found" error
To run Gulp, you need two things: ... So before trying to install Gulp in your project directory, you must first install the...
Read more >
Error when running gulp command in Terminal #155 - GitHub
I'm getting this error when running gulp command on the app directory. I have phantonjs and its nom module installed.
Read more >
Getting Started with Gulp.js - Semaphore Tutorial
Learn how to set up and use Gulp.js, a task runner for Node.js based on Node streams. We'll introduce main concepts of Gulp...
Read more >
Gulp error after NPM update [#3278434] | Drupal.org
This usually happens because your environment has changed since running `npm install`. Run `npm rebuild node-sass` to download the binding for ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found