zoukankan      html  css  js  c++  java
  • kong-dashbord本地安装gulp打包报错的解决办法

    本地安装kong-dashbord执行npm run build 报如下错误

    gulp[31507]: ../src/node_contextify.cc:637:static void node::contextify::ContextifyScript::New(const FunctionCallbackInfo<v8::Value> &): Assertion `args[1]->IsString()' failed.
     1: 0x100038d1f node::Abort() [/usr/local/bin/node]
     2: 0x100037e19 node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, char const*, int, v8::Local<v8::Value>*, node::async_context) [/usr/local/bin/node]
     3: 0x100060837 node::contextify::ContextifyScript::New(v8::FunctionCallbackInfo<v8::Value> const&) [/usr/local/bin/node]
     4: 0x10023bf8f v8::internal::FunctionCallbackArguments::Call(v8::internal::CallHandlerInfo*) [/usr/local/bin/node]
     5: 0x10023b128 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]

    查了下解决方法说是node升级错误,按照以下步骤顺利运行

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

    其中kong-dashbord 本地运行的代码步骤是
    git clone https://github.com/PGBI/kong-dashboard.git
    npm run install
    npm run build
    /bin/kong-dashboard.js start --kong-url  http://kong-dashbord:8001
    打开网址http://localhost:8080/#!/,我们就可以愉快的修改了


  • 相关阅读:
    计算机世界中解决问题的三种技术手段
    应用程序池的经典模式与集成模式的区别
    sh文件的编译
    flex学习开始了
    com,ActiveX,Ole之间的关系学习总结
    "正在等待localhost。。”问题的解决
    一些感悟
    面向对象软件工程方法学实践【转】
    外连接在sqlserver和access之间的差异
    外连接在sqlserver和access之间的差异
  • 原文地址:https://www.cnblogs.com/eveblog/p/9669429.html
Copyright © 2011-2022 走看看