1

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

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

  1. 全局安装 gulp 和 Bowernpm install -g 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

有什么建议么?

4

1 回答 1

0

根据针对 ionic 提交的错误(相同的错误,不同的构建实用程序),这似乎是模块依赖项组合的问题。他们的解决方案:

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

运行此程序后,我发现我的大部分模块依赖项都已更改,其中许多是次要或构建更新。

于 2019-02-05T22:21:55.883 回答