mirror of
https://github.com/9technologygroup/patchmon.net.git
synced 2025-10-24 08:33:38 +00:00
fix: correct package versions and npm flags
Frontend package.json fixes: - react-router-dom: ^6.31.0 → ^6.30.1 (6.31.0 doesn't exist) - postcss: ^8.5.1 → ^8.5.6 (use latest stable version) Setup script fixes: - Replace deprecated --production flag with --omit=dev - Resolves npm warning: 'npm WARN config production Use --omit=dev instead' Fixes npm install errors: - 'No matching version found for react-router-dom@^6.31.0' - Deprecated npm configuration warnings
This commit is contained in:
15
README.md
15
README.md
@@ -68,6 +68,21 @@ For getting started with Docker, see the [Docker documentation](https://github.c
|
||||
|
||||
Run on a clean Ubuntu/Debian server with internet access:
|
||||
|
||||
#### Debian:
|
||||
```bash
|
||||
apt update -y
|
||||
apt upgrade -y
|
||||
apt install curl -y
|
||||
```
|
||||
|
||||
#### Ubuntu:
|
||||
```bash
|
||||
apt-get update -y
|
||||
apt-get upgrade -y
|
||||
apt install curl -y
|
||||
```
|
||||
|
||||
#### Script
|
||||
```bash
|
||||
curl -fsSL -o setup.sh https://raw.githubusercontent.com/9technologygroup/patchmon.net/main/setup.sh && chmod +x setup.sh && bash setup.sh
|
||||
```
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
"react-chartjs-2": "^5.2.0",
|
||||
"react-dom": "^18.3.1",
|
||||
"react-icons": "^5.5.0",
|
||||
"react-router-dom": "^6.31.0"
|
||||
"react-router-dom": "^6.30.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/js": "^9.17.0",
|
||||
@@ -39,7 +39,7 @@
|
||||
"eslint-plugin-react-hooks": "^5.1.0",
|
||||
"eslint-plugin-react-refresh": "^0.4.16",
|
||||
"globals": "^15.14.0",
|
||||
"postcss": "^8.5.1",
|
||||
"postcss": "^8.5.6",
|
||||
"tailwindcss": "^3.4.17",
|
||||
"vite": "^7.1.5"
|
||||
},
|
||||
|
||||
4
setup.sh
4
setup.sh
@@ -722,7 +722,7 @@ install_dependencies() {
|
||||
export NPM_CONFIG_CACHE=$APP_DIR/.npm
|
||||
export NPM_CONFIG_PREFIX=$APP_DIR/.npm-global
|
||||
export NPM_CONFIG_TMP=$APP_DIR/.npm/tmp
|
||||
npm install --production --no-audit --no-fund --no-save
|
||||
npm install --omit=dev --no-audit --no-fund --no-save
|
||||
"; then
|
||||
print_error "Failed to install root dependencies"
|
||||
return 1
|
||||
@@ -737,7 +737,7 @@ install_dependencies() {
|
||||
export NPM_CONFIG_CACHE=$APP_DIR/.npm
|
||||
export NPM_CONFIG_PREFIX=$APP_DIR/.npm-global
|
||||
export NPM_CONFIG_TMP=$APP_DIR/.npm/tmp
|
||||
npm install --production --no-audit --no-fund --no-save
|
||||
npm install --omit=dev --no-audit --no-fund --no-save
|
||||
"; then
|
||||
print_error "Failed to install backend dependencies"
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user