AngularJS项目中遇到的问题

一、从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 >::_Umove+79442
 6: 00007FF710BB6379 std::vector >::_Umove+83897
 7: 00007FF710BB56BC std::vector >::_Umove+80636
 8: 00007FF710BB55DB std::vector >::_Umove+80411
 9: 000000EB7B65C5C1
npm ERR! code ELIFECYCLE
npm ERR! errno 134
npm ERR! [email protected] start: `gulp default`
npm ERR! Exit status 134
npm ERR!
npm ERR! Failed at the [email protected] 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

你可能感兴趣的:(windows,javascript,node.js)