我正在尝试安装这个React应用程序的依赖项。我在我的package.json中有这些包,并运行npm install
。输出为:
> semantic-ui@2.3.3 install /srv/org/reactsgo/app/front_end/node_modules/semantic-ui
> gulp install
gulp[10488]: ../src/node_contextify.cc:637:static void node::contextify::ContextifyScript::New(const v8::FunctionCallbackInfo<v8::Value>&): Assertion `args[1]->IsString()' failed.
1: 0x8b8210 node::Abort() [gulp]
2: 0x8b82e5 [gulp]
3: 0x8eb237 node::contextify::ContextifyScript::New(v8::FunctionCallbackInfo<v8::Value> const&) [gulp]
4: 0xb4daa8 [gulp]
5: 0xb4fa12 v8::internal::Builtin_HandleApiCall(int, v8::internal::Object**, v8::internal::Isolate*) [gulp]
6: 0x1a851fd841bd
Aborted
我尝试过用
npm clean cache --force
清除缓存,也进行了构建和重构。即使我只是单独尝试 npm install semantic-ui
,在执行 semantic-ui 安装时仍然遇到相同的问题。我是否遇到了版本问题?我的 Node 版本是 v10.8.0,npm 版本为 6.2.0。
有人遇到类似的问题并找到解决方法吗?
注:在 Debian 8 jessie 操作系统上。
npm clean cache --force
命令,然后安装gulp-header
插件(命令为npm install gulp-header --save-dev
),最后再执行npm install
命令。 - maxadorable