@pwaos.net/runtime-client-api 0.2.6 → 0.2.7

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.
Files changed (3) hide show
  1. package/README.md +26 -0
  2. package/binding.gyp +1 -1
  3. package/package.json +2 -4
package/README.md CHANGED
@@ -19,6 +19,32 @@ This package automatically pulls in
19
19
  the prebuilt Runtime SDK distribution for your platform. The native addon is built automatically
20
20
  at install time (or loaded from prebuilt binaries). No manual download or compilation is required.
21
21
 
22
+ ## Troubleshooting
23
+
24
+ ### Windows: `missing any Windows SDK` even though the SDK is installed
25
+
26
+ **Symptom**
27
+
28
+ `npm install "@pwaos.net/runtime-client-api"` from a regular PowerShell or CMD
29
+ window fails with:
30
+
31
+ ```text
32
+ gyp ERR! find VS - found VC++ toolset: v142
33
+ gyp ERR! find VS - missing any Windows SDK
34
+ gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use
35
+
36
+ Fix: Run npm install from a Native Tools Command Prompt instead of a regular
37
+ shell:
38
+
39
+ ```text
40
+ cd <your-project>
41
+ npm install @pwaos.net/runtime-client-api
42
+ ```
43
+
44
+ The Native Tools Command Prompt preconfigures all MSVC-related environment
45
+ variables that node-gyp needs, so the build finds the toolchain and the
46
+ installed Windows SDK automatically.
47
+
22
48
  ## Platform Support
23
49
 
24
50
  | OS | Architecture | Status |
package/binding.gyp CHANGED
@@ -64,7 +64,7 @@
64
64
  ],
65
65
  "msvs_settings": {
66
66
  "VCCLCompilerTool": {
67
- "AdditionalOptions": ["/std:c++20", "/utf-8"],
67
+ "AdditionalOptions": ["/std:c++20"],
68
68
  "ForcedIncludeFiles": ["memory"]
69
69
  }
70
70
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pwaos.net/runtime-client-api",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "type": "module",
5
5
  "description": "Node.js native addon for the PwaOS RuntimeClient API. Automatically resolves the matching Runtime SDK for your platform.",
6
6
  "engines": {
@@ -39,9 +39,7 @@
39
39
  "./package.json": "./package.json"
40
40
  },
41
41
  "dependencies": {
42
- "@pwaos.net/runtime": "^0.2.1"
43
- },
44
- "devDependencies": {
42
+ "@pwaos.net/runtime": "^0.2.4",
45
43
  "node-gyp": "^10.2.0"
46
44
  },
47
45
  "scripts": {