@shined/doctor-binding 0.0.42 → 0.0.45-canary.0

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 (2) hide show
  1. package/index.js +6 -5
  2. package/package.json +10 -10
package/index.js CHANGED
@@ -365,11 +365,12 @@ if (!nativeBinding || process.env.NAPI_RS_FORCE_WASI) {
365
365
 
366
366
  if (!nativeBinding) {
367
367
  if (loadErrors.length > 0) {
368
- // TODO Link to documentation with potential fixes
369
- // - The package owner could build/publish bindings for this arch
370
- // - The user may need to bundle the correct files
371
- // - The user may need to re-install node_modules to get new packages
372
- throw new Error('Failed to load native binding', { cause: loadErrors })
368
+ throw new Error(
369
+ `Cannot find native binding. ` +
370
+ `npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). ` +
371
+ 'Please try `npm i` again after removing both package-lock.json and node_modules directory.',
372
+ { cause: loadErrors }
373
+ )
373
374
  }
374
375
  throw new Error(`Failed to load native binding`)
375
376
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shined/doctor-binding",
3
- "version": "0.0.42",
3
+ "version": "0.0.45-canary.0",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "repository": {
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "publishConfig": {
10
10
  "access": "public",
11
- "tag": "latest"
11
+ "tag": "canary"
12
12
  },
13
13
  "files": [
14
14
  "index.js",
@@ -20,13 +20,13 @@
20
20
  },
21
21
  "homepage": "https://github.com/sheinsight/doctor-engine#readme",
22
22
  "optionalDependencies": {
23
- "@shined/doctor-binding-darwin-x64": "0.0.42",
24
- "@shined/doctor-binding-darwin-arm64": "0.0.42",
25
- "@shined/doctor-binding-win32-x64-msvc": "0.0.42",
26
- "@shined/doctor-binding-win32-arm64-msvc": "0.0.42",
27
- "@shined/doctor-binding-linux-x64-gnu": "0.0.42",
28
- "@shined/doctor-binding-linux-x64-musl": "0.0.42",
29
- "@shined/doctor-binding-linux-arm64-gnu": "0.0.42",
30
- "@shined/doctor-binding-linux-arm64-musl": "0.0.42"
23
+ "@shined/doctor-binding-darwin-x64": "0.0.45-canary.0",
24
+ "@shined/doctor-binding-darwin-arm64": "0.0.45-canary.0",
25
+ "@shined/doctor-binding-win32-x64-msvc": "0.0.45-canary.0",
26
+ "@shined/doctor-binding-win32-arm64-msvc": "0.0.45-canary.0",
27
+ "@shined/doctor-binding-linux-x64-gnu": "0.0.45-canary.0",
28
+ "@shined/doctor-binding-linux-x64-musl": "0.0.45-canary.0",
29
+ "@shined/doctor-binding-linux-arm64-gnu": "0.0.45-canary.0",
30
+ "@shined/doctor-binding-linux-arm64-musl": "0.0.45-canary.0"
31
31
  }
32
32
  }