-
Notifications
You must be signed in to change notification settings - Fork 1
NPM ci / install, major issues with github, git+ssh/http[s] dependencies #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
On Linux Lubuntu with NodeJS |
A temporary solution would be to introduce the |
Here is what diff --git a/package-lock.json b/package-lock.json
index 0a802ba..1e0daad 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -2270,10 +2270,6 @@
"coffee-script": "^1.10.0"
}
},
- "css-element-queries": {
- "version": "github:marcj/css-element-queries#e1f3e0475a52b830d4b6490abd7b2984fbc8553f",
- "from": "github:marcj/css-element-queries#master"
- },
"css2json": {
"version": "0.0.4",
"resolved": "https://registry.npmjs.org/css2json/-/css2json-0.0.4.tgz",
@@ -3643,11 +3639,13 @@
},
"balanced-match": {
"version": "1.0.0",
- "bundled": true
+ "bundled": true,
+ "optional": true
},
"brace-expansion": {
"version": "1.1.11",
"bundled": true,
+ "optional": true,
"requires": {
"balanced-match": "^1.0.0",
"concat-map": "0.0.1"
@@ -3660,15 +3658,18 @@
},
"code-point-at": {
"version": "1.1.0",
- "bundled": true
+ "bundled": true,
+ "optional": true
},
"concat-map": {
"version": "0.0.1",
- "bundled": true
+ "bundled": true,
+ "optional": true
},
"console-control-strings": {
"version": "1.1.0",
- "bundled": true
+ "bundled": true,
+ "optional": true
},
"core-util-is": {
"version": "1.0.2",
@@ -3771,7 +3772,8 @@
},
"inherits": {
"version": "2.0.3",
- "bundled": true
+ "bundled": true,
+ "optional": true
},
"ini": {
"version": "1.3.5",
@@ -3781,6 +3783,7 @@
"is-fullwidth-code-point": {
"version": "1.0.0",
"bundled": true,
+ "optional": true,
"requires": {
"number-is-nan": "^1.0.0"
}
@@ -3793,17 +3796,20 @@
"minimatch": {
"version": "3.0.4",
"bundled": true,
+ "optional": true,
"requires": {
"brace-expansion": "^1.1.7"
}
},
"minimist": {
"version": "0.0.8",
- "bundled": true
+ "bundled": true,
+ "optional": true
},
"minipass": {
"version": "2.2.4",
"bundled": true,
+ "optional": true,
"requires": {
"safe-buffer": "^5.1.1",
"yallist": "^3.0.0"
@@ -3820,6 +3826,7 @@
"mkdirp": {
"version": "0.5.1",
"bundled": true,
+ "optional": true,
"requires": {
"minimist": "0.0.8"
}
@@ -3892,7 +3899,8 @@
},
"number-is-nan": {
"version": "1.0.1",
- "bundled": true
+ "bundled": true,
+ "optional": true
},
"object-assign": {
"version": "4.1.1",
@@ -3902,6 +3910,7 @@
"once": {
"version": "1.4.0",
"bundled": true,
+ "optional": true,
"requires": {
"wrappy": "1"
}
@@ -4007,6 +4016,7 @@
"string-width": {
"version": "1.0.2",
"bundled": true,
+ "optional": true,
"requires": {
"code-point-at": "^1.0.0",
"is-fullwidth-code-point": "^1.0.0",
@@ -6876,9 +6886,22 @@
"r2-utils-js": "^1.0.0-alpha.4",
"request": "^2.88.0",
"request-promise-native": "^1.0.5",
- "ta-json": "github:danielweck/ta-json#9938af9c192ca36aa600f2ce14eb5735aa1a50e6",
"tslib": "^1.9.3",
"urijs": "^1.19.1"
+ },
+ "dependencies": {
+ "reflect-metadata": {
+ "version": "0.1.12",
+ "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.1.12.tgz",
+ "integrity": "sha512-n+IyV+nGz3+0q3/Yf1ra12KpCyi001bi4XFxSjbiWWjfqb52iTTtpGXmCCAOWWIAn9KEuFZKGqBERHmrtScZ3A=="
+ },
+ "ta-json": {
+ "version": "github:danielweck/ta-json#9938af9c192ca36aa600f2ce14eb5735aa1a50e6",
+ "from": "github:danielweck/ta-json#9938af9c192ca36aa600f2ce14eb5735aa1a50e6",
+ "requires": {
+ "reflect-metadata": "^0.1.12"
+ }
+ }
}
},
"r2-navigator-js": {
@@ -6886,18 +6909,37 @@
"resolved": "https://registry.npmjs.org/r2-navigator-js/-/r2-navigator-js-1.0.0-alpha.5.tgz",
"integrity": "sha512-pELhDV2WVzzmPXfkNMoPqcqgd9X9XzbBJi0RPcda5373sMY7YBXIRMth1Y4j0c50U7uYzsV2Egh/j2X+H+NA7w==",
"requires": {
- "css-element-queries": "github:marcj/css-element-queries#e1f3e0475a52b830d4b6490abd7b2984fbc8553f",
"debounce": "^1.2.0",
"debug": "^4.0.1",
"express": "^4.16.3",
"moment": "^2.22.2",
"r2-lcp-js": "^1.0.0-alpha.4",
"r2-streamer-js": "^1.0.0-alpha.4",
- "resize-sensor": "github:normanzb/resize-sensor#4cbb8ec7f454c985f2b89672afb46d8cbcf89497",
- "ta-json": "github:danielweck/ta-json#9938af9c192ca36aa600f2ce14eb5735aa1a50e6",
"tslib": "^1.9.3",
"urijs": "^1.19.1",
"uuid": "^3.3.2"
+ },
+ "dependencies": {
+ "css-element-queries": {
+ "version": "github:marcj/css-element-queries#e1f3e0475a52b830d4b6490abd7b2984fbc8553f",
+ "from": "github:marcj/css-element-queries#e1f3e0475a52b830d4b6490abd7b2984fbc8553f"
+ },
+ "reflect-metadata": {
+ "version": "0.1.12",
+ "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.1.12.tgz",
+ "integrity": "sha512-n+IyV+nGz3+0q3/Yf1ra12KpCyi001bi4XFxSjbiWWjfqb52iTTtpGXmCCAOWWIAn9KEuFZKGqBERHmrtScZ3A=="
+ },
+ "resize-sensor": {
+ "version": "github:normanzb/resize-sensor#4cbb8ec7f454c985f2b89672afb46d8cbcf89497",
+ "from": "github:normanzb/resize-sensor#4cbb8ec7f454c985f2b89672afb46d8cbcf89497"
+ },
+ "ta-json": {
+ "version": "github:danielweck/ta-json#9938af9c192ca36aa600f2ce14eb5735aa1a50e6",
+ "from": "github:danielweck/ta-json#9938af9c192ca36aa600f2ce14eb5735aa1a50e6",
+ "requires": {
+ "reflect-metadata": "^0.1.12"
+ }
+ }
}
},
"r2-opds-js": {
@@ -6908,9 +6950,22 @@
"debug": "^4.0.1",
"r2-shared-js": "^1.0.0-alpha.4",
"r2-utils-js": "^1.0.0-alpha.4",
- "ta-json": "github:danielweck/ta-json#9938af9c192ca36aa600f2ce14eb5735aa1a50e6",
"tslib": "^1.9.3",
"xmldom": "^0.1.27"
+ },
+ "dependencies": {
+ "reflect-metadata": {
+ "version": "0.1.12",
+ "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.1.12.tgz",
+ "integrity": "sha512-n+IyV+nGz3+0q3/Yf1ra12KpCyi001bi4XFxSjbiWWjfqb52iTTtpGXmCCAOWWIAn9KEuFZKGqBERHmrtScZ3A=="
+ },
+ "ta-json": {
+ "version": "github:danielweck/ta-json#9938af9c192ca36aa600f2ce14eb5735aa1a50e6",
+ "from": "github:danielweck/ta-json#9938af9c192ca36aa600f2ce14eb5735aa1a50e6",
+ "requires": {
+ "reflect-metadata": "^0.1.12"
+ }
+ }
}
},
"r2-shared-js": {
@@ -6925,10 +6980,23 @@
"r2-lcp-js": "^1.0.0-alpha.4",
"r2-utils-js": "^1.0.0-alpha.4",
"slugify": "^1.3.1",
- "ta-json": "github:danielweck/ta-json#9938af9c192ca36aa600f2ce14eb5735aa1a50e6",
"tslib": "^1.9.3",
"xmldom": "^0.1.27",
"xpath": "^0.0.27"
+ },
+ "dependencies": {
+ "reflect-metadata": {
+ "version": "0.1.12",
+ "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.1.12.tgz",
+ "integrity": "sha512-n+IyV+nGz3+0q3/Yf1ra12KpCyi001bi4XFxSjbiWWjfqb52iTTtpGXmCCAOWWIAn9KEuFZKGqBERHmrtScZ3A=="
+ },
+ "ta-json": {
+ "version": "github:danielweck/ta-json#9938af9c192ca36aa600f2ce14eb5735aa1a50e6",
+ "from": "github:danielweck/ta-json#9938af9c192ca36aa600f2ce14eb5735aa1a50e6",
+ "requires": {
+ "reflect-metadata": "^0.1.12"
+ }
+ }
}
},
"r2-streamer-js": {
@@ -6953,7 +7021,6 @@
"request": "^2.88.0",
"request-promise-native": "^1.0.5",
"selfsigned": "^1.10.3",
- "ta-json": "github:danielweck/ta-json#9938af9c192ca36aa600f2ce14eb5735aa1a50e6",
"tmp": "^0.0.33",
"tslib": "^1.9.3",
"uuid": "^3.3.2",
@@ -6980,6 +7047,18 @@
"version": "0.4.1",
"resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
"integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg=="
+ },
+ "reflect-metadata": {
+ "version": "0.1.12",
+ "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.1.12.tgz",
+ "integrity": "sha512-n+IyV+nGz3+0q3/Yf1ra12KpCyi001bi4XFxSjbiWWjfqb52iTTtpGXmCCAOWWIAn9KEuFZKGqBERHmrtScZ3A=="
+ },
+ "ta-json": {
+ "version": "github:danielweck/ta-json#9938af9c192ca36aa600f2ce14eb5735aa1a50e6",
+ "from": "github:danielweck/ta-json#9938af9c192ca36aa600f2ce14eb5735aa1a50e6",
+ "requires": {
+ "reflect-metadata": "^0.1.12"
+ }
}
}
},
@@ -6994,12 +7073,27 @@
"reflect-metadata": "^0.1.12",
"request": "^2.88.0",
"request-promise-native": "^1.0.5",
- "ta-json": "github:danielweck/ta-json#9938af9c192ca36aa600f2ce14eb5735aa1a50e6",
"tslib": "^1.9.3",
"unzipper": "^0.9.3",
"xpath": "^0.0.27",
"yauzl": "^2.10.0",
"yazl": "^2.4.3"
+ },
+ "dependencies": {
+ "ta-json": {
+ "version": "github:danielweck/ta-json#9938af9c192ca36aa600f2ce14eb5735aa1a50e6",
+ "from": "github:danielweck/ta-json#9938af9c192ca36aa600f2ce14eb5735aa1a50e6",
+ "requires": {
+ "reflect-metadata": "^0.1.12"
+ },
+ "dependencies": {
+ "reflect-metadata": {
+ "version": "0.1.12",
+ "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.1.12.tgz",
+ "integrity": "sha512-n+IyV+nGz3+0q3/Yf1ra12KpCyi001bi4XFxSjbiWWjfqb52iTTtpGXmCCAOWWIAn9KEuFZKGqBERHmrtScZ3A=="
+ }
+ }
+ }
}
},
"randomatic": {
@@ -7381,10 +7475,6 @@
"editions": "^1.1.1"
}
},
- "resize-sensor": {
- "version": "github:normanzb/resize-sensor#4cbb8ec7f454c985f2b89672afb46d8cbcf89497",
- "from": "github:normanzb/resize-sensor#master"
- },
"resolve": {
"version": "1.8.1",
"resolved": "https://registry.npmjs.org/resolve/-/resolve-1.8.1.tgz",
@@ -8426,8 +8516,13 @@
"resolved": "https://registry.npmjs.org/system-font-families/-/system-font-families-0.5.0.tgz",
"integrity": "sha1-uqedR9C5ryG1AmiU/fMroekwIpU=",
"requires": {
- "babel-polyfill": "^6.23.0",
- "ttfinfo": "git+https://github.com/rBurgett/ttfinfo.git#f00e43e2a6d4c8a12a677df20b7804492d50863c"
+ "babel-polyfill": "^6.23.0"
+ },
+ "dependencies": {
+ "ttfinfo": {
+ "version": "git+https://github.com/rBurgett/ttfinfo.git#f00e43e2a6d4c8a12a677df20b7804492d50863c",
+ "from": "git+https://github.com/rBurgett/ttfinfo.git#f00e43e2a6d4c8a12a677df20b7804492d50863c"
+ }
}
},
"ta-json": {
@@ -8680,10 +8775,6 @@
"tslib": "^1.8.1"
}
},
- "ttfinfo": {
- "version": "git+https://github.com/rBurgett/ttfinfo.git#f00e43e2a6d4c8a12a677df20b7804492d50863c",
- "from": "git+https://github.com/rBurgett/ttfinfo.git"
- },
"tty-browserify": {
"version": "0.0.1",
"resolved": "https://registry.npmjs.org/tty-browserify/-/tty-browserify-0.0.1.tgz", |
Bad news, since updating to MacOS Mojave with latest LTS NodeJS and NPM, I observe the same bogus |
So that means publishing ReadiumCSS on npm, right? |
Typical error due to duplicated
|
Other possible web console error:
|
@JayPanoz ReadiumCSS not yet integrated as a NPM dependency in the build system of |
OK well noted (sorry, an “eventually” went missing in my original message). |
The fix / workaround seems to work (MacOS), testing the R2-JS See commits: In a nutshell: still NPM packages hosted at GitHub (not proper NPM |
Damn, NPM
However, Technically-speaking, Okay so I am afraid I must publish a fork of |
Note that the above NPM bug is consistently reproducible with NodeJS |
No comments ... |
Yeah I personally rolled back last week because of awful npm issues with |
I found these related open NPM issues: |
and ... This repository is moving to: https://github.com/npm/cli |
@JayPanoz |
There is also this Continuous Integration CLI tool written by an NPM lead dev: |
The migration to a new package name |
…PM package (fixes readium/r2-testapp-js#10 ) * Removed TypeScript linter warning message (checks for no unused variables) * NPM updates related to the Node TypeScript typings
…PM package (fixes readium/r2-testapp-js#10 ) * Removed TypeScript linter warning message (checks for no unused variables) * NPM updates related to the Node TypeScript typings
…PM package (fixes readium/r2-testapp-js#10 ) * Fixed TypeScript regression bug (3.0.3 -> 3.1.1) related to XML / HTML DOM typings * Removed TypeScript linter warning message (checks for no unused variables) * NPM updates related to the Node TypeScript typings
…PM package (fixes #10 ) * Removed TypeScript linter warning message (checks for no unused variables) * NPM updates related to the Node TypeScript typings
Okay so the problem is fixed for However, Now, even if we fix create proper NPM packages for I'm looking into our options... |
Related issue: edrlab/thorium-reader#190 |
What is left of this issue is not actionable (i.e. NPM bugs in some versions). Let's close this issue for now. |
MacOS, Windows, Linux ... NPM v5 / v6, I keep having major problems building and running
r2-testapp-js
andreadium-desktop
depending on how thenode_modules
folder hierarchy is created / maintained by NPM.This is an old problem:
npm/npm#5123
NPM
dedupe
does not suffice, but I found that this utility script does a good job (I patched it to supportgithub
in addition togit[+ssh|http[s]]
):https://github.com/kazuho/force-dedupe-git-modules
( https://www.npmjs.com/package/force-dedupe-git-modules )
The good new is that we have control over
ta-json
(and therefore its dependencyreflect-metadata
),css-element-queries
, andriot-typed
... howeverttfinfo
is required bysystem-font-families
, so we have to see if this is problematic.Bottom line: we really have to eliminate the Git(Hub) dependencies in our NPM
package.json
files, across the board (i.e. replace them with proper npmjs.com published deps).The text was updated successfully, but these errors were encountered: