How to fix ReferenceError: primordials is not defined in node

14423    1 year ago

I have installed node modules by npm install, then I tried to do gulp sass-watch in command prompt. After that I got the below response.

[18:18:32] Requiring external module babel-register
const { Math, Object, Reflect } = primordials;

ReferenceError: primordials is not defined

Have tried this before gulp sass-watch

npm -g install gulp-cli
Answers { 1 }
1 year ago

I hit the same error. I suspect you're using node 12 and gulp 3. That combination does not work:

A previous workaround from Jan. does not work either:

Solution: Either upgrade to gulp 4 or downgrade to an earlier node.

Comments :
  • its not work