src\node_contextify.cc:631: Assertion 'args[1]->IsString()' failed.
node 10 版本会出现这个问题, 安装natives后可以解决
使用命令 npm install natives
之后又遇到
npm ERR! Unexpected end of JSON input while parsing near '...ostcss-modules-values'
其中这个错误会多次出现,near后面的信息不一样,重复执行以下命令
npm cache clean --force
npm install natives
接着再遇到
npm WARN deprecated babel-preset-es2015@6.24.1: � Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to upd
ate!
接着执行
npm uninstall --save-dev babel-preset-es2015
npm install --save-dev babel-preset-env@next
参考以下文章
错误1:https://blog.csdn.net/hacker_2014/article/details/81088536
错误2:https://blog.csdn.net/liu_zhaoming/article/details/80848639
错误3:https://blog.csdn.net/qq_25479327/article/details/80152486