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
fs.js:27
const { Math, Object, Reflect } = primordials;
^
ReferenceError: primordials is not defined
Have tried this before gulp sass-watch
npm -g install gulp-cli
I hit the same error. I suspect you're using node 12 and gulp 3. That combination does not work: https://github.com/gulpjs/gulp/issues/2324
A previous workaround from Jan. does not work either: https://github.com/gulpjs/gulp/issues/2246
Solution: Either upgrade to gulp 4 or downgrade to an earlier node.
Encountered the same problem with Khaos. Downgrading node to v11.15.0 did the trick.
Similar issue here using the
webshot
node package. I suspect they need to update something on their end before I can proceed with Node v12.I'm using node
v12.1.0
and gulpgulp@4.0.2
but it doesn't workI tried with node
v10.x
and gulpv3.x
, then the magic happnedI'd recommend using npm-shrinkwrap.json solution posted by Valentin: stackoverflow.com/a/58394828/2726785, even though this is the accepted solution.