contextify::ContextifyScript::New(const v8::FunctionCallbackInfo<v8::Value>&):

问题描述

在执行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

posted @ 2018-11-22 17:02  shipskunkun  阅读(2116)  评论(0编辑  收藏  举报