Sage 8.5.1中的gulp watch问题

时间:2018-12-18 14:39:04

标签: node.js gulp roots-sage

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

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

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

但是当我运行gulp watch时,出现以下问题:

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

有什么建议吗?

1 个答案:

答案 0 :(得分:0)

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

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

运行此命令后,我发现我的大多数模块依赖项已更改,其中许多是次要的或内部的更新。