portkeeper 1.1.6 → 1.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -29,6 +29,16 @@ A comprehensive port management tool for developers that helps reserve, monitor,
29
29
 
30
30
  ## Installation
31
31
 
32
+ ### Important: Node.js Compatibility
33
+
34
+ If you encounter a `NODE_MODULE_VERSION` error after installation, please run:
35
+
36
+ ```bash
37
+ npm rebuild -g better-sqlite3
38
+ ```
39
+
40
+ This rebuilds the native module for your specific Node.js version.
41
+
32
42
  ### Via npm
33
43
  ```bash
34
44
  # CLI only (lightweight)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "portkeeper",
3
- "version": "1.1.6",
3
+ "version": "1.1.8",
4
4
  "description": "A comprehensive port management tool for developers with CLI and GUI interfaces",
5
5
  "main": "dist/cli/index.js",
6
6
  "type": "module",
@@ -24,7 +24,6 @@
24
24
  "build": "npm run build:cli && npm run build:gui",
25
25
  "build:npm": "npm run build:cli && npm run build:gui",
26
26
  "prepublishOnly": "npm run build:npm",
27
- "postinstall": "node scripts/postinstall.cjs",
28
27
  "fix:electron": "npm rebuild better-sqlite3 --runtime=electron --target=28.0.0 --dist-url=https://electronjs.org/headers --abi=119",
29
28
  "fix:node": "npm rebuild better-sqlite3",
30
29
  "build:cli": "tsc -p tsconfig.cli.json",
@@ -7,8 +7,8 @@ const path = require('path');
7
7
  console.log('🔧 Setting up portkeeper...');
8
8
 
9
9
  try {
10
- // Get the installation directory
11
- const installDir = process.env.INIT_CWD || process.cwd();
10
+ // Get the installation directory - for npm install, we need the actual package directory
11
+ const installDir = process.env.INIT_CWD || __dirname.replace(/\/scripts$/, '');
12
12
  console.log('Installation directory:', installDir);
13
13
 
14
14
  // Always rebuild for Node.js first