gulp sage 8.5.1 中的 watch 问题

gulp watch issue in sage 8.5.1

我目前正在使用 Sage 8.5.1 的网站上工作。

我已经完成了以下所有操作:

  1. 使用 npm install -g gulp bower
  2. 全局安装 gulp 和 Bower
  3. 导航到主题目录并运行 npm install
  4. 运行 bower install

但是当我 运行 gulp 观看时,我遇到了以下问题:

gulp watch[8188]: ../src/node_contextify.cc:633:static void node::contextify::ContextifyScript::New(const FunctionCallbackInfo<v8::Value> &): Assertion `args[1]->IsString()' failed.
 1: 0x10003b125 node::Abort() [/usr/local/bin/node]
 2: 0x10003a183 node::AddEnvironmentCleanupHook(v8::Isolate*, void (*)(void*), void*) [/usr/local/bin/node]
 3: 0x100064bc1 node::contextify::ContextifyScript::New(v8::FunctionCallbackInfo<v8::Value> const&) [/usr/local/bin/node]
 4: 0x10023122f v8::internal::FunctionCallbackArguments::Call(v8::internal::CallHandlerInfo*) [/usr/local/bin/node]
 5: 0x1002303cb v8::internal::MaybeHandle<v8::internal::Object> v8::internal::(anonymous namespace)::HandleApiCallHelper<true>(v8::internal::Isolate*, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::FunctionTemplateInfo>, v8::internal::Handle<v8::internal::Object>, v8::internal::BuiltinArguments) [/usr/local/bin/node]
 6: 0x10022fde7 v8::internal::Builtin_Impl_HandleApiCall(v8::internal::BuiltinArguments, v8::internal::Isolate*) [/usr/local/bin/node]
 7: 0x22e57615be3d 
Abort trap: 6

有什么建议吗?

Per a bug filed against ionic(相同的错误,不同的构建实用程序),这似乎是模块依赖项的某些组合的问题。他们的解决方案:

rm -rf node_modules
rm package-lock.json
npm cache clean --force
npm install

在我 运行 之后,我发现我的大部分模块依赖项都发生了变化,其中许多是次要更新或构建更新。