Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I recently updated my nodejs version to 10.30.0. Everything works fine. But my gulp build task not working which was working fine on older version(9.X). This is what I am getting.

 gulp[11376]: src\node_contextify.cc:629: Assertion `args[1]->IsString()' failed.
 1: node::DecodeWrite
 2: node::DecodeWrite
 3: uv_loop_fork
 4: v8::internal::interpreter::BytecodeDecoder::Decode
 5: v8::internal::RegExpImpl::Exec
 6: v8::internal::RegExpImpl::Exec
 7: v8::internal::RegExpImpl::Exec
 8: 00000384E1284281

Somebody, please help me.

like image 307
M14 Avatar asked May 31 '18 09:05

M14


3 Answers

Just run command

npm install natives
like image 145
nosensus Avatar answered Oct 15 '22 00:10

nosensus


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.

like image 16
jasonflaherty Avatar answered Oct 15 '22 01:10

jasonflaherty


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

like image 5
邱凯翔 Avatar answered Oct 15 '22 00:10

邱凯翔