gulp task issue with nodejs v10.3.0 : src\node_contextify.cc:629: Assertion `args[1]->IsString()' failed

Solution 1:

Just run command

npm install natives

Solution 2:

I have had two different solutions work in two different workspaces. The first after updating to node 10.6.0 required me to use this method:

$rm -rf node_modules
$rm -rf package-lock.json
$npm cache clean
$npm install

The second workspace wouldn't work with the above, though I did try it first, it required me to reinstall all my gulp dependencies then run npm audit fix. For example:

$npm install --dev gulp gulp-sass gulp-autoprefixer
$npm audit fix

Hope this helps someone.

Solution 3:

node version compatible problem, try use node version<=9.11.2.

Solution 4:

I had the same issue. Deleting node_modules and re-running npm install, to re-install the modules listed in package.json, did work for me.