contextify::ContextifyScript::New(const v8::FunctionCallbackInfo &):


問題描述

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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM