node版本升级后,原有项目出现以下问题

gulp[8272]: src\node_contextify.cc:628: 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: 000001097F704281

node 10 版本会出现这个问题, 安装natives后可以解决

使用以下命令就可以解决

npm install natives
05-18 01:57