update readme and scripts
This commit is contained in:
@@ -14,7 +14,7 @@ Base URL: **https://gitea.linuxiarz.pl/gru/npm-angie-auto-install**
|
|||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
- Debian 12+ / Ubuntu 24.04 (root privileges).
|
- Debian 12+ / Ubuntu 24.04 (root privileges).
|
||||||
- `curl`, `python3`
|
- `curl`, `python3`, `sudo`
|
||||||
- Network access to fetch packages and Node/Yarn artifacts.
|
- Network access to fetch packages and Node/Yarn artifacts.
|
||||||
- ~2 GB RAM (recommended) or add 2 GB swap for safer frontend builds.
|
- ~2 GB RAM (recommended) or add 2 GB swap for safer frontend builds.
|
||||||
|
|
||||||
|
|||||||
@@ -941,7 +941,7 @@ def install_node_from_nodesource(version: str):
|
|||||||
print(f" npm: {npm_ver}")
|
print(f" npm: {npm_ver}")
|
||||||
else:
|
else:
|
||||||
print(f" Node.js: {node_ver}")
|
print(f" Node.js: {node_ver}")
|
||||||
print(f" ⚠ npm not found, attempting to install...")
|
print(f"⚠ npm not found, installing..)
|
||||||
|
|
||||||
run(["apt-get", "install", "-y", "npm"], check=False)
|
run(["apt-get", "install", "-y", "npm"], check=False)
|
||||||
|
|
||||||
@@ -950,9 +950,9 @@ def install_node_from_nodesource(version: str):
|
|||||||
|
|
||||||
if shutil.which("npm"):
|
if shutil.which("npm"):
|
||||||
npm_ver = run_out(["npm", "--version"], check=False).strip()
|
npm_ver = run_out(["npm", "--version"], check=False).strip()
|
||||||
print(f" ✔ npm {npm_ver} installed successfully")
|
print(f"✔ npm {npm_ver} installed successfully")
|
||||||
else:
|
else:
|
||||||
print(f" ✖ npm could not be installed - manual intervention required")
|
print(f"✖ npm could not be installed - manual intervention required")
|
||||||
else:
|
else:
|
||||||
print("✖ Node.js installation failed")
|
print("✖ Node.js installation failed")
|
||||||
raise RuntimeError("Node.js installation failed")
|
raise RuntimeError("Node.js installation failed")
|
||||||
|
|||||||
Reference in New Issue
Block a user