Open Michagin opened 3 years ago
Same issue here. I have tied 5 or 6 ways to solve this. Downgrading, altering the sources. Running a recovery tool. Reinstalling the software. Reinstalling the correct version in a VM-Ware machine. Etcetera.
I can NOT get it to work. Help please?
Fix it in one 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 will update npm-shrinkwrap.json with a bunch of content.
Run gulp to start the project.
Taken from: https://stackoverflow.com/questions/55921442/how-to-fix-referenceerror-primordials-is-not-defined-in-node-js
Gulp is introduced in episode 19. However, gulp recently went from version 3 to 4 and with that, a new notation is used. function arguments are now supposed to be used with
gulp.task( 'default', gulp.series('styles', 'js'), function() {
instead of an ordinary arraygulp.task( 'default', ['styles', 'js'], function() {
. Converting tasks are easy, however, when I runGulp Watch
, I get this error:I tried setting the required gulp version to
3.9.1
but that gave me 9 high severity vulnerabilities when runningnpm install
. When fixing them usingnpm audit fix
(and then the recommendednpm audit fix --force
), npm sets Gulp's decency back to4.0.2
as of today (Marts. 4th, 2021).