{"id":92,"hash":"da65f1afc87be44e83270bafdcbe8fa0fd4ca8559554b323042c9c47f95f6526","pattern":"How to fix &quot;ReferenceError: primordials is not defined&quot; in Node.js","full_message":"I have installed Node.js modules by 'npm install', and then I tried to do gulp sass-watch in a command prompt. After that, I got the below response.\n\n[18:18:32] Requiring external module babel-register\nfs.js:27\nconst { Math, Object, Reflect } = primordials;\n                                  ^\n\nReferenceError: primordials is not defined\n\nI have tried this before gulp sass-watch:\n\nnpm -g install gulp-cli","ecosystem":"npm","package_name":"node.js","package_version":null,"solution":"I hit the same error. I suspect you're using Node.js 12 and Gulp.js 3. That combination does not work: Gulp.js 3 is broken on Node.js 12 #2324\n\nA previous workaround from Jan. does not work either: After update to Node.js 11.0.0 running Gulp.js exits with 'ReferenceError: internalBinding is not defined' #2246\n\nSolution: Either upgrade to Gulp.js 4 or downgrade to an earlier version of Node.js.","confidence":0.95,"source":"stackoverflow","source_url":"https://stackoverflow.com/questions/55921442/how-to-fix-referenceerror-primordials-is-not-defined-in-node-js","votes":920,"created_at":"2026-04-19T04:41:18.784299+00:00","updated_at":"2026-04-19T04:51:00.534911+00:00"}