node版本升级后,原有项目打不开

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
posted @ 2019-03-04 11:35  芙蓉0504  阅读(1252)  评论(0编辑  收藏  举报