Linux下编译Nebula-Studio出错

  • nebula stuido 版本:v2分支和master分支代码
  • 部署方式( 单机):
  • 是否为线上版本:N
  • 系统信息:Linux localhost.localdomain 3.10.0-862.14.1.5.h587.eulerosv2r7.x86_64 #1 SMP Tue May 25 04:24:35 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
  • 网络信息:Linux服务器无法连接外网,通过配置/etc/profile文件后可以访问外网

复现步骤:
1.下载代码,上传到linux服务器,解压代码
2.修改.npmrc中的registry为公司内部地址
3.根据github上的readme文件指导,在nebula-studio下执行npm install,出现以下错误:

> husky@3.1.0 install /home/dev/nebula-studio-2/node_modules/husky
> node husky install

sh: node: 未找到命令
npm WARN co-mocha@1.2.2 requires a peer of mocha@>=1.18 <6 but none is installed. You must install peer dependencies yourself.
npm WARN acorn-jsx@5.3.2 requires a peer of acorn@^6.0.0 || ^7.0.0 || ^8.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN The package @rematch/core is included as both a dev and production dependency.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/webpack-dev-server/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/watchpack-chokidar2/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! husky@3.1.0 install: `node husky install`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the husky@3.1.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2021-10-12T08_55_49_273Z-debug.log

服务器下安装 node 了么,如果安装了,可以参考之前的帖子建立软连接 https://discuss.nebula-graph.com.cn/t/topic/2196/28

1 个赞

安装过了,可能是网络问题,我把husky这个依赖删掉就没问题了。

此话题已在最后回复的 30 天后被自动关闭。不再允许新回复。