gpt4 book ai didi

javascript - node.js v10.0.0 乱用 gulp

转载 作者:搜寻专家 更新时间:2023-10-31 23:29:49 25 4
gpt4 key购买 nike

我有一个 node.js api 项目,它与 node.js v8.1.4 和 npm v5.0.3 一起工作得很好,但是当我转移到 node.js v10.0.0 & npm v5.6.0,它产生了这个:

core-api@0.0.2 ecosystem E:\opensource\node-cheat\core-api gulp compile && pm2 start ecosystem.config.js | bunyan

gulp[11100]: src\node_contextify.cc:631: Assertion args[1]->IsString()' failed. 1: node::DecodeWrite 2:
node::DecodeWrite 3: uv_loop_fork 4:
v8::internal::interpreter::BytecodeDecoder::Decode 5:
v8::internal::RegExpImpl::Exec 6: v8::internal::RegExpImpl::Exec 7:
v8::internal::RegExpImpl::Exec 8: 000000E5F6F84281 npm ERR! code
ELIFECYCLE npm ERR! errno 134 npm ERR! core-api@0.0.2 ecosystem:
gulp compile && pm2 start ecosystem.config.js | bunyan` npm ERR! Exit status 134 npm ERR! npm ERR! Failed at the core-api@0.0.2 ecosystem 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\zeeshan\AppData\Roaming\npm-cache_logs\2018-05-06T11_29_32_241Z-debug.log

如何解决这个问题?

最佳答案

好吧,很多人已经面对了Github Link

解决方案一:

npm update

npm rebuild

解决方案 2:

删除node_modulespackage-lock.json

npm i

Update:对我来说后来工作顺利

关于javascript - node.js v10.0.0 乱用 gulp,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50199303/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com