首页
Javascript
Html
Css
Node.js
Electron
移动开发
工具类
服务端
浏览器相关
前端收藏
其他

nodejs从8升级到10,gulp报错:gulp[2092]: src\node_contextify.cc:633: Assertion `args[1]->IsString()' failed.

2019年02月22日 发布 阅读(1020) 作者:懒炖

nodejs从8.15.0版本升级到10.15.0版本,gulp打包报错~gulp[2092]: src\node_contextify.cc:633: Assertion `args[1]->IsString()’ failed.

报错

  1. D:\project\web\>npm run dev
  2. > pc-gulp@1.0.0 dev D:\project\web
  3. > gulp --gulpfile dev/gulpfile.js
  4. [16:23:40] Working directory changed to D:\project\web\dev
  5. gulp[2092]: src\node_contextify.cc:633: Assertion `args[1]->IsString()' failed.
  6. 1: 000000013FAB121A v8::internal::GCIdleTimeHandler::GCIdleTimeHandler+4810
  7. 2: 000000013FA8A5B6 node::MakeCallback+4518
  8. 3: 000000013FA8A66F node::MakeCallback+4703
  9. 4: 000000013FA5D838 node::DecodeWrite+12952
  10. 5: 00000001402B5782 v8::internal::OptimizingCompileDispatcher::Unblock+60562
  11. 6: 00000001402B6908 v8::internal::OptimizingCompileDispatcher::Unblock+65048
  12. 7: 00000001402B5C3D v8::internal::OptimizingCompileDispatcher::Unblock+61773
  13. 8: 00000001402B5B5B v8::internal::OptimizingCompileDispatcher::Unblock+61547
  14. 9: 000000DFC00DC5C1
  15. npm ERR! code ELIFECYCLE
  16. npm ERR! errno 134
  17. npm ERR! pc-gulp@1.0.0 dev: `gulp --gulpfile dev/gulpfile.js`
  18. npm ERR! Exit status 134
  19. npm ERR!
  20. npm ERR! Failed at the pc-gulp@1.0.0 dev script.
  21. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

解决办法
删除node_modules目录,删除package-lock.json文件,重新执行npm install

版权声明:本站文章除特别声明外,均采用署名-非商业性使用-禁止演绎 4.0 国际 许可协议,如需转载,请注明出处

评论

  •