jekyllt / jasper2

Full-featured Jekyll port of Ghost's default theme Casper v2 👻
https://jekyllt.github.io/jasper2/
MIT License
763 stars 659 forks source link

AssertionError [ERR_ASSERTION]: Task function must be specified #109

Closed Jatin-8898 closed 4 years ago

Jatin-8898 commented 4 years ago

I updated to Gulp 4. So getting Assertion Error.

Since on gulp 3 it was giving error => ReferenceError: primordials is not defined ghost casper

Node version: 12.18.0

Npm version: 6.14.5

Gulp version: 3.9.1

Can you please provide the file in Gulp v4

Jatin-8898 commented 4 years ago

Got this solution on Stackoverflow. So closing it.

Fix it in 1 minute: Just follow these steps. I'm on windows 10 and it worked perfectly for me!

In the same directory where you have package.json create a npm-shrinkwrap.json file with the following contents:

    {
      "dependencies": {
        "graceful-fs": {
            "version": "4.2.2"
         }
      }
    }

Run npm install, and don't worry, it'll update npm-shrinkwrap.json with a bunch of content. Run gulp to start the project.