Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ndbroadbent opened this issue Apr 13, 2020 · 2 comments

Comments

@ndbroadbent
Copy link

$ npm run build

> [email protected] 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!

@Lovinity
Copy link

Lovinity commented Aug 8, 2020

I can confirm this problem. However, upgrading to gulp 4 solves this issue but creates another issue, considering Alpaca was not written for gulp 4.

Alpaca needs to be updated, but I believe it is no longer being maintained.

@MROALI
Copy link

MROALI commented Jan 24, 2023

Hello, i had the same problem.
To resolve it, you have to downgrade node.js or do add a file npm-shrinkwrap.json in the source with the following code :
{ "dependencies": { "graceful-fs": { "version": "4.2.2" } } }

Then : npm install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants