Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install using local #2606

Closed
2 tasks done
Loughty opened this issue Jan 13, 2023 · 6 comments
Closed
2 tasks done

Can't install using local #2606

Loughty opened this issue Jan 13, 2023 · 6 comments
Labels
bug Something isn't working cannot-reproduce

Comments

@Loughty
Copy link

Loughty commented Jan 13, 2023

⚠️ Please verify that this bug has NOT been raised before.

  • I checked and didn't find similar issue

🛡️ Security Policy

Description

image

The installation just give me an error, using
npm run setup
Or the script that are in the folder (install.sh), it's the same

Here a very long log:
log.txt

👟 Reproduction steps

Follow the installation instructions...

npm install npm -g
git clone https://github.com/louislam/uptime-kuma.git
cd uptime-kuma
npm run setup

👀 Expected behavior

Install Uptime Kuma

😓 Actual Behavior

Error during install

🐻 Uptime-Kuma Version

1.19.4

💻 Operating System and Arch

Ubuntu Server 20.04 LTS (64 bits)

🌐 Browser

N/A

🐋 Docker Version

No response

🟩 NodeJS Version

18.13.0 (from snap)

📝 Relevant log output

HEAD is now at 5f5c2d7c Update to 1.19.4
npm WARN config production Use `--omit=dev` instead.
npm WARN deprecated [email protected]: This module has moved and is now available at @hapi/topo. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: This module has moved and is now available at @hapi/hoek. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: This module has moved and is now available at @hapi/joi. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
npm ERR! code 1
npm ERR! path /opt/uptime-kuma/node_modules/@louislam/sqlite3
npm ERR! command failed
npm ERR! command sh -c node-pre-gyp install --fallback-to-build

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2023-01-13T18_14_54_402Z-debug-0.log
@Loughty Loughty added the bug Something isn't working label Jan 13, 2023
@louislam
Copy link
Owner

I guess it was failed to download files from GitHub.
https://github.com/louislam/node-sqlite3/releases/tag/v15.1.2

@Loughty
Copy link
Author

Loughty commented Jan 16, 2023

I guess it was failed to download files from GitHub. https://github.com/louislam/node-sqlite3/releases/tag/v15.1.2

I'm working with the Docker, the Local install always fails whatever I do, I'm fine with whatever of those two, but it's estrange equally

@philipshannon
Copy link

philipshannon commented Apr 4, 2023

Windows Portable is failing for me, here is log output

1729 timing build:link Completed in 92ms
1730 info run @louislam/[email protected] install node_modules/@louislam/sqlite3 node-pre-gyp install --fallback-to-build
1731 info run @louislam/[email protected] install { code: 1, signal: null }
1732 timing reify:rollback:createSparse Completed in 5289ms
1733 timing reify:rollback:retireShallow Completed in 0ms
1734 timing command:ci Completed in 25084ms
1735 verbose stack Error: command failed
1735 verbose stack at ChildProcess. (C:\apps\uptime-kuma\node\node_modules\npm\node_modules@npmcli\promise-spawn\lib\index.js:53:27)
1735 verbose stack at ChildProcess.emit (node:events:513:28)
1735 verbose stack at maybeClose (node:internal/child_process:1091:16)
1735 verbose stack at ChildProcess._handle.onexit (node:internal/child_process:302:5)
1736 verbose pkgid @louislam/[email protected]
1737 verbose cwd C:\apps\uptime-kuma\core
1738 verbose Windows_NT 10.0.17763
1739 verbose node v18.14.1
1740 verbose npm v9.3.1
1741 error code 1
1742 error path C:\apps\uptime-kuma\core\node_modules@louislam\sqlite3
1743 error command failed
1744 error command C:\Windows\system32\cmd.exe /d /s /c node-pre-gyp install --fallback-to-build
1745 error '"node"' is not recognized as an internal or external command,
1745 error operable program or batch file.
1746 verbose exit 1
1747 timing npm Completed in 25173ms

running in docker works fine

@louislam
Copy link
Owner

louislam commented Apr 5, 2023

@philipshannon Windows 10 64bit?

@Null-Kelvin
Copy link

Windows Portable will not run, if there is no installed NodeJS.

npm WARN config production Use `--omit=dev` instead.
npm WARN deprecated [email protected]: Use promise-toolbox/fromEvent instead
npm WARN deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
npm WARN deprecated [email protected]: This module has moved and is now available at @hapi/topo. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
npm WARN deprecated [email protected]: This module has moved and is now available at @hapi/hoek. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
npm WARN deprecated [email protected]: This module has moved and is now available at @hapi/joi. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
npm ERR! code 1
npm ERR! path E:\uptime-kuma\core\node_modules\@louislam\sqlite3
npm ERR! command failed
 --- PROBLEM START ---
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node-pre-gyp install --fallback-to-build
npm ERR! '"node"' is not recognized as an internal or external command,
 --- PROBLEM END ---
npm ERR! operable program or batch file.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Reomure\AppData\Local\npm-cache\_logs\2023-08-29T11_13_30_267Z-debug-0.log

If NodeJS is installed, or if you add the path to the node.exe downloaded via uptime-kuma.exe to the PATH, everything will run successfully.

@louislam louislam mentioned this issue Aug 29, 2023
2 tasks
@louislam
Copy link
Owner

louislam commented Aug 29, 2023

It seems that node-pre-gyp is unable to use the portable node.js. I don't see anyway to solve this without adding to the PATH.

I decide to pre-download everything into the zip file in the latest version and upcoming versions.
https://github.com/louislam/uptime-kuma/releases/download/1.23.1/uptime-kuma-windows-x64-portable-1.23.1.zip

Also available under the release note:
https://github.com/louislam/uptime-kuma/releases/tag/1.23.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cannot-reproduce
Projects
None yet
Development

No branches or pull requests

4 participants