在节点13中,当我运行lerna bootstrap
时,出现此错误:
lerna success Bootstrapped 10 packages
/Users/anatoliyzaslavskiy/.nvm/versions/node/v13.2.0/bin/node[97953]: ../src/signal_wrap.cc:159:void node::DecreaseSignalHandlerCount(int): Assertion `(new_handler_count) >= (0)' failed.
1: 0x100081675 node::Abort() [/Users/anatoliyzaslavskiy/.nvm/versions/node/v13.2.0/bin/node]
2: 0x10008141d node::AppendExceptionLine(node::Environment*, v8::Local<v8::Value>, v8::Local<v8::Message>, node::ErrorHandlingMode) [/Users/anatoliyzaslavskiy/.nvm/versions/node/v13.2.0/bin/node]
3: 0x1000f5f0d node::DecreaseSignalHandlerCount(int) [/Users/anatoliyzaslavskiy/.nvm/versions/node/v13.2.0/bin/node]
4: 0x1000f6685 node::(anonymous namespace)::SignalWrap::Close(v8::Local<v8::Value>) [/Users/anatoliyzaslavskiy/.nvm/versions/node/v13.2.0/bin/node]
5: 0x10003a81e node::Environment::CleanupHandles() [/Users/anatoliyzaslavskiy/.nvm/versions/node/v13.2.0/bin/node]
6: 0x10003a9d6 node::Environment::RunCleanup() [/Users/anatoliyzaslavskiy/.nvm/versions/node/v13.2.0/bin/node]
7: 0x1000b3dd0 node::NodeMainInstance::Run() [/Users/anatoliyzaslavskiy/.nvm/versions/node/v13.2.0/bin/node]
8: 0x10005da91 node::Start(int, char**) [/Users/anatoliyzaslavskiy/.nvm/versions/node/v13.2.0/bin/node]
9: 0x7fff6fcb22e5 start [/usr/lib/system/libdyld.dylib]
error Command failed with signal "SIGABRT".
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
但是当我切换到版本12.13.1
时,运行没有错误
答案 0 :(得分:0)
正如在GH问题https://github.com/lerna/lerna/issues/2373上提到的那样,从节点13.2.x
更新到节点13.3.x
解决了lerna bootstrap
这个问题。