Closed superen7527 closed 9 months ago
贴下 系统信息,机器信息
************************************************************
* Ubuntu22.04-64bit-minimal
************************************************************
* If you have questions about your server, you can use our *
* 24-hour Trouble-Ticket-System *
* *
* Do NOT shutdown your server with "halt", use "reboot" *
* instead *
* *
* Have fun with your server *
* Customer-Support *
************************************************************
************************************************************
* Ubuntu22.04-64bit-minimal
************************************************************
* Wenn Sie Fragen und/oder Probleme mit Ihrem Server haben,*
* steht Ihnen unser eMail-Support rund um die Uhr zur *
* Verfuegung. *
* *
* Fahren Sie Ihren Server NICHT per "halt" herunter, *
* sondern nutzen Sie "reboot". *
* *
* Viel Spass wuenscht Ihnen *
* Ihr Kundensupport *
************************************************************
Last login: Thu Jan 25 22:53:18 2024
root@srv28672:~# uname -a && cat /etc/*release
Linux srv28672 5.4.123-1.el7.elrepo.x86_64 #1 SMP Fri May 28 09:57:53 EDT 2021 x86_64 x86_64 x86_64 GNU/Linux
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.3 LTS"
PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
root@srv28672:~#
npm --version
10.2.4
root@srv28672:~# node --version
v21.6.0
root@srv28672:~#
安装别的node项目没什么问题。 比如项目主页的cron-ui 还有 uptime-kuma 都可以安装正常运行。
我自己弄了一个多星期,都要崩溃了,没办法才发issue,希望没有打扰。
npm --version 10.2.4 root@srv28672:~# node --version v21.6.0 root@srv28672:~#
安装别的node项目没什么问题。 比如项目主页的cron-ui 还有 uptime-kuma 都可以安装正常运行。
我自己弄了一个多星期,都要放弃了,没办法才发issue,希望没有打扰。
npm i -g axios 能安装吗
可以 npm i -g axios
added 9 packages in 3s
1 package is looking for funding
run npm fund
for details
可以 npm i -g axios
added 9 packages in 3s
1 package is looking for funding run
npm fund
for details
国内机器?挂个代理执行 npm i -g @whyour/qinglong 试试
可以 npm i -g axios added 9 packages in 3s 1 package is looking for funding run
npm fund
for details国内机器?挂个代理执行 npm i -g @whyour/qinglong 试试
国外的。这个git有点奇怪。我都是update最新版,还不能git安装你的项目 只能git clone
*************************************
root@srv28672:~# npm i -g @whyour/qinglong
npm i -g @whyour/qingl(⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂) ⠸ idealTree:lib: silong (⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂) ⠸ idealTree:lib: sill idealTree buildDforce(#########⠂⠂⠂⠂⠂⠂⠂⠂⠂) ⠴ idealTree:body-parser: sill placeDe(#########⠂⠂⠂⠂⠂⠂⠂⠂⠂) ⠴ idealTree:body-parser: sill placeDep no
npm WARN deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs
npm ERR! code EEXIST
npm ERR! path /root/.nvm/versions/node/v21.6.0/bin/ql
npm ERR! EEXIST: file already exists
npm ERR! File exists: /root/.nvm/versions/node/v21.6.0/bin/ql
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with --force to overwrite files recklessly.
npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2024-01-25T15_37_42_030Z-debug-0.log
root@srv28672:~# npm i -g @whyour/qinglong --force
npm WARN using --force Recommended protections disabled.
npm WARN deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs
npm ERR! code 1
npm ERR! git dep preparation failed
npm ERR! command /root/.nvm/versions/node/v21.6.0/bin/node /root/.nvm/versions/node/v21.6.0/lib/node_modules/npm/bin/npm-cli.js install --force --cache=/root/.npm --prefer-offline=false --prefer-online=false --offline=false --no-progress --no-save --no-audit --include=dev --include=peer --include=optional --no-package-lock-only --no-dry-run
npm ERR! npm WARN using --force Recommended protections disabled.
npm ERR! npm ERR! code 1
npm ERR! npm ERR! path /root/.npm/_cacache/tmp/git-cloneXXXXXXlopVc8
npm ERR! npm ERR! command failed
npm ERR! npm ERR! command sh -c prebuild-install -r napi || node-gyp rebuild
npm ERR! npm ERR! sh: 1: prebuild-install: not found
npm ERR! npm ERR! gyp info it worked if it ends with ok
npm ERR! npm ERR! gyp info using node-gyp@10.0.1
npm ERR! npm ERR! gyp info using node@21.6.0 | linux | x64
npm ERR! npm ERR! gyp info find Python using Python version 3.10.12 found at "/usr/bin/python3"
npm ERR! npm ERR! gyp info spawn /usr/bin/python3
npm ERR! npm ERR! gyp info spawn args [
npm ERR! npm ERR! gyp info spawn args '/root/.nvm/versions/node/v21.6.0/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! npm ERR! gyp info spawn args '-f',
npm ERR! npm ERR! gyp info spawn args 'make',
npm ERR! npm ERR! gyp info spawn args '-I',
npm ERR! npm ERR! gyp info spawn args '/root/.npm/_cacache/tmp/git-cloneXXXXXXlopVc8/build/config.gypi',
npm ERR! npm ERR! gyp info spawn args '-I',
npm ERR! npm ERR! gyp info spawn args '/root/.nvm/versions/node/v21.6.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! npm ERR! gyp info spawn args '-I',
npm ERR! npm ERR! gyp info spawn args '/root/.cache/node-gyp/21.6.0/include/node/common.gypi',
npm ERR! npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! npm ERR! gyp info spawn args '-Dnode_root_dir=/root/.cache/node-gyp/21.6.0',
npm ERR! npm ERR! gyp info spawn args '-Dnode_gyp_dir=/root/.nvm/versions/node/v21.6.0/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! npm ERR! gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/21.6.0/<(target_arch)/node.lib',
npm ERR! npm ERR! gyp info spawn args '-Dmodule_root_dir=/root/.npm/_cacache/tmp/git-cloneXXXXXXlopVc8',
npm ERR! npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! npm ERR! gyp info spawn args '--depth=.',
npm ERR! npm ERR! gyp info spawn args '--no-parallel',
npm ERR! npm ERR! gyp info spawn args '--generator-output',
npm ERR! npm ERR! gyp info spawn args 'build',
npm ERR! npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! npm ERR! gyp info spawn args ]
npm ERR! npm ERR! node:internal/modules/cjs/loader:1152
npm ERR! npm ERR! throw err;
npm ERR! npm ERR! ^
npm ERR! npm ERR!
npm ERR! npm ERR! Error: Cannot find module 'node-addon-api'
npm ERR! npm ERR! Require stack:
npm ERR! npm ERR! - /root/.npm/_cacache/tmp/git-cloneXXXXXXlopVc8/[eval]
npm ERR! npm ERR! at Module._resolveFilename (node:internal/modules/cjs/loader:1149:15)
npm ERR! npm ERR! at Module._load (node:internal/modules/cjs/loader:990:27)
npm ERR! npm ERR! at Module.require (node:internal/modules/cjs/loader:1237:19)
npm ERR! npm ERR! at require (node:internal/modules/helpers:176:18)
npm ERR! npm ERR! at [eval]:1:1
npm ERR! npm ERR! at runScriptInThisContext (node:internal/vm:144:10)
npm ERR! npm ERR! at node:internal/process/execution:109:14npm ERR! npm ERR! at [eval]-wrapper:6:24
npm ERR! npm ERR! at runScript (node:internal/process/execution:92:62)
npm ERR! npm ERR! at evalScript (node:internal/process/execution:123:10) {
npm ERR! npm ERR! code: 'MODULE_NOT_FOUND',
npm ERR! npm ERR! requireStack: [ '/root/.npm/_cacache/tmp/git-cloneXXXXXXlopVc8/[eval]' ]
npm ERR! npm ERR! }
npm ERR! npm ERR!
npm ERR! npm ERR! Node.js v21.6.0
npm ERR! npm ERR! gyp: Call to 'node -p "require('node-addon-api').gyp"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
npm ERR! npm ERR! gyp ERR! configure error
npm ERR! npm ERR! gyp ERR! stack Error: `gyp` failed with exit code: 1
npm ERR! npm ERR! gyp ERR! stack at ChildProcess.<anonymous> (/root/.nvm/versions/node/v21.6.0/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:271:18)
npm ERR! npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:519:28)
npm ERR! npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:294:12)
npm ERR! npm ERR! gyp ERR! System Linux 5.4.123-1.el7.elrepo.x86_64
npm ERR! npm ERR! gyp ERR! command "/root/.nvm/versions/node/v21.6.0/bin/node" "/root/.nvm/versions/node/v21.6.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! npm ERR! gyp ERR! cwd /root/.npm/_cacache/tmp/git-cloneXXXXXXlopVc8
npm ERR! npm ERR! gyp ERR! node -v v21.6.0
npm ERR! npm ERR! gyp ERR! node-gyp -v v10.0.1
npm ERR! npm ERR! gyp ERR! not ok
npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2024-01-25T15_38_21_733Z-debug-0.log
root@srv28672:~#
我自己判断git有点问题,加了密钥也不能拉 后来发现 git clone https写法可以,然后就用开发模式 结果还是安装不了,报错在issue最上面。
root@srv28672:~# git clone git@github.com:whyour/qinglong.git
fatal: destination path 'qinglong' already exists and is not an empty directory.
root@srv28672:~# cd /qinglong
-bash: cd: /qinglong: No such file or directory
root@srv28672:~# cd qinglong
root@srv28672:~/qinglong# git clone git@github.com:whyour/qinglong.git
Cloning into 'qinglong'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
开发模式 我把这里改成https跑了一下
$ git clone git@github.com:whyour/qinglong.git
$ cd qinglong
$ cp .env.example .env
# 推荐使用 pnpm https://pnpm.io/zh/installation
$ npm install -g pnpm@8.3.1
$ pnpm install
$ pnpm start
用 https 的路径克隆 https://github.com/whyour/qinglong.git
readme 有点问题
npm i -g node-addon-api 把这个包安装上,再安装 @whyour/qinglong 试试
感觉你装的 node 有问题,用 curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
安装试试
我 debian 试了 npm i -g @whyour/qinglong
没问题
好的,我这几个都试一下,只会用node安装别人的项目自己不会写,所以其实挺小白的。我自己都试一遍,有点晚了大佬你先去休息吧,我测试完后再反馈,你有空再回我就好,不用等我回复,看你回的很快,我还在慢慢敲代码,怪不好意思的。
真的头大。。实在搞不定了,更新也不行,npm i -g node-addon-api 以后也不行。大佬你有没有tg,我发ssh密码给你看看?如果方便的话
我这个是x86的 实在没办法就算了
真的头大。。实在搞不定了,更新也不行,npm i -g node-addon-api 以后也不行。大佬你有没有tg,我发ssh密码给你看看?如果方便的话
我这个是x86的 实在没办法就算了
whyour
大佬已经帮忙解决了 issue我就关掉了 很感谢
Qinglong version
最新版
Steps to reproduce
要执行一些本机脚本 而且安装不了docker使用npm安装
What is expected?
使用npm 提示git不行
日志太长了,发不上来。
感觉像私有库一样,https能clone下来 @git不行 遂使用开发模式 clone到本地再install start
使用pnpm 会卡死 连ssh都进不去 等了两天都不行 还没跑起来 最后重启了服务器 确定了好几次 pnpm就是跑不了
What is actually happening?
最后用npm自己跑,分好几种情况: 1.也是卡死 2.报错没安装起来 3.运行了没卡死可以再进新的ssh,但是程序不动。一直停着,这个没有等一天 一小时左右我就关掉了,不确定会不会成功。
最后有成功运行一次,先是卡死堵塞系统,半小时左右可以了,一看也成功监听地址,但是进不去5700 只能进别的端口。
问了好几天gpt没解决。有一些日志太多了剪切板看着头大没上传过来。这是现在重新跑拿的代码 上面那些也是 都是刚刚临时复制下来的。
System Info
No response
Any additional comments?
No response