问题描述

在执行grunt 命令时候报错
contextify::ContextifyScript::New(const FunctionCallbackInfo<v8::Value> &): Assertion `args[1]->IsString()' failed.

解决

1)安装Gulp 4并升级您的gulpfile.js更多关于更改的信息可以在本文中找到

或者

2)将node.js版本降级到LTS 8.x,直到Gulp 4作为默认npm包发布为止。

自己选择的是node版本降级

steps:

1. 使用npm 安装一个模块 n 到全局  
 
    npm  install  -g  n

2. n 列出node 版本号

    使用 n ,通过上下键,就可以选择不同的版本啦

3. 或者直接安装指定版本

    n 8.2.1

参考

https://stackoverflow.com/questions/50419079/react-deploy-error-assertion-args1-isstring

相关文章:

  • 2021-12-14
  • 2021-10-21
  • 2022-12-23
  • 2022-12-23
  • 2022-01-06
  • 2021-09-11
  • 2021-10-02
  • 2021-12-03
猜你喜欢
  • 2021-10-10
  • 2021-11-23
  • 2021-09-23
  • 2021-06-05
  • 2021-05-12
  • 2021-12-16
  • 2021-07-05
相关资源
相似解决方案