UnblockNeteaseMusic / UnblockNeteaseMusic/server

centos9 下安装node版本失败

Open
#1,513 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
JavaScript
Stars
7.8k
Forks
762
PR merge metrics
No merged PRs in 30d

Description

Bug 描述

系统里已经安装了node20,但是安装脚本还是调用16版本,导致最后没有找到node命令。

预期行为

No response

实际行为

No response

复现步骤

No response

启动命令及环境变量

日志内容

[INFO] 正在克隆 UnblockNeteaseMusic 服务端到本地。。。
Cloning into '/usr/local/bin/unblockneteasemusic-server'...
remote: Enumerating objects: 6293, done.
remote: Counting objects: 100% (1161/1161), done.
remote: Compressing objects: 100% (200/200), done.
remote: Total 6293 (delta 1071), reused 972 (delta 961), pack-reused 5132 (from 1)
Receiving objects: 100% (6293/6293), 13.78 MiB | 17.53 MiB/s, done.
Resolving deltas: 100% (4196/4196), done.
/usr/local/bin/unblockneteasemusic-server ~
install.sh: line 162: node: command not found
[ERROR] 服务端运行测试失败。
[root@racknerd-e944ce ~]# node
Welcome to Node.js v20.18.0.

网易云音乐歌曲链接

No response

网易云音乐版本号

2.9.5

操作系统

win11

其他信息

No response

问题排查
  • 我确认我使用的核心是由 UnblockNeteaseMusic 项目官方发行,不是其他任何 fork。
  • 我确认我已经升级到了最新的核心版本(推荐使用最新构建而不是 release)。
  • 我确认我已经启用了 HTTPS 端口。
  • 我确认我已经正确设置了 EndPoint。
  • 我确认我已经在对应的客户端正确安装了 CA 证书。

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading install.sh around line 162 and compare that invocation with the reported Node.js v20 environment, noting that the issue title says CentOS 9 while the environment section says Windows 11. Reproduce the installation with the supplied log context and verify that the server test can find and run the intended node command.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js, shell
Domain
devops, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.