Skip to content

Upgrade to gulp 4 (Fix "ReferenceError: primordials is not defined" when running "npm run build") #745

@ndbroadbent

Description

@ndbroadbent
$ npm run build

> alpaca@1.5.27 build /Users/me/code/alpaca
> gulp default

fs.js:27
const { Math, Object } = primordials;
                         ^

ReferenceError: primordials is not defined
    at fs.js:27:26

I found this StackOverflow answer:

I suspect you're using node 12 and gulp 3. That combination does not work: gulpjs/gulp#2324
...
Solution: Either upgrade to gulp 4 or downgrade to an earlier node.

So I would like to request an upgrade to gulp 4, or alternatively add some docs about supported Node versions. Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions