Azure-Samples / meanjs

A simple MEAN.js application that demonstrates how to build data-driven Node.js apps in Azure App Service
Other
32 stars 43 forks source link

Can't run on Node 12 #10

Open LuisBosquez opened 4 years ago

LuisBosquez commented 4 years ago

There's a known incompatibility between Node 12 and gulp v3: https://github.com/gulpjs/gulp/issues/2324

Running npm start throws this error (Also reported on this stackoverflow thread):

ReferenceError: primordials is not defined
    at fs.js:35:5

Upgrading gulp@^4 throws a different kind of error.

AssertionError [ERR_ASSERTION]: Task function must be specified

Downgrading to gulp@^2 was probably not meant to work with async:

[gulp] Running 'default'...
[gulp] Errored 'default' in 0 ms gulp.hasTask is not a function

This basically requires one to downgrade Node, which seems like a pain.

liyikwai commented 4 years ago

Same issue. Almost give up.

shawncx commented 3 years ago

It works with https://timonweb.com/javascript/how-to-fix-referenceerror-primordials-is-not-defined-error/