共计 1458 个字符,预计需要花费 4 分钟才能阅读完成。
一、从 git clone 后用 vscode 打开项目,执行 npm run start
时报错
gulp[10500]: c:\ws\src\node_contextify.cc:635: Assertion `args[1]->IsString()' failed.
1: 00007FF7106AD1BA v8::internal::GCIdleTimeHandler::GCIdleTimeHandler+4506
2: 00007FF710687F96 node::MakeCallback+4534
3: 00007FF71068804F node::MakeCallback+4719
4: 00007FF71065C460 node::DecodeWrite+13120
5: 00007FF710BB5212 std::vector<v8::internal::compiler::MoveOperands * __ptr64,v8::internal::ZoneAllocator<v8::internal::compiler::MoveOperands * __ptr64> >::_Umove+79442
6: 00007FF710BB6379 std::vector<v8::internal::compiler::MoveOperands * __ptr64,v8::internal::ZoneAllocator<v8::internal::compiler::MoveOperands * __ptr64> >::_Umove+83897
7: 00007FF710BB56BC std::vector<v8::internal::compiler::MoveOperands * __ptr64,v8::internal::ZoneAllocator<v8::internal::compiler::MoveOperands * __ptr64> >::_Umove+80636
8: 00007FF710BB55DB std::vector<v8::internal::compiler::MoveOperands * __ptr64,v8::internal::ZoneAllocator<v8::internal::compiler::MoveOperands * __ptr64> >::_Umove+80411
9: 000000EB7B65C5C1
npm ERR! code ELIFECYCLE
npm ERR! errno 134
npm ERR! ESettle@1.0.0 start: `gulp default`
npm ERR! Exit status 134
npm ERR!
npm ERR! Failed at the ESettle@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\zhanxl\AppData\Roaming\npm-cache\_logs\2019-10-14T01_09_23_529Z-debug.log
原因:由 node 早于 10 版本开发的项目升级到了 10 以上的版本 执行 gulp,node 10 版本都会出现这个问题
解决方法:安装 node.js 的原生 javascript 模块 natives 可以解决
命令:npm install natives
正文完
发表至: javascript
2019-10-14