How to fix ReferenceError: primordials is not defined in node

Just follow these steps. I’m on windows 10 and it worked perfectly for me!

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

    1
    2
    3
    4
    5
    6
    7
    {
    "dependencies": {
    "graceful-fs": {
    "version": "4.2.2"
    }
    }
    }
  2. Run npm install, and don’t worry, it’ll update npm-shrinkwrap.json with a bunch of content.

  3. Run gulp to start the project.

Source:

https://stackoverflow.com/a/60921145