metrico / qryn

⭐️ All-in-One Polyglot Observability with OLAP Storage for Logs, Metrics, Traces & Profiles. Drop-in Grafana Cloud replacement compatible with Loki, Prometheus, Tempo, Pyroscope, Opentelemetry, Datadog and beyond :rocket:
https://qryn.dev
GNU Affero General Public License v3.0
1.19k stars 67 forks source link

NPM install qryn failed #187

Closed ktpktr0 closed 11 months ago

ktpktr0 commented 2 years ago
# npm -v
8.15.1
# node -v
v18.7.0

install logs:

# npm install -g qryn
npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated gulp-header@1.8.12: Removed event-stream from gulp-header
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated require-subvert@0.1.0: no longer maintained
npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated

added 132 packages, changed 406 packages, and audited 1361 packages in 40s

17 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

=======================================================================
# cnpm install -g qryn
Downloading qryn to /usr/lib/node_modules/qryn_tmp
Copying /usr/lib/node_modules/qryn_tmp/_qryn@2.1.9@qryn to /usr/lib/node_modules/qryn
Installing qryn's dependencies to /usr/lib/node_modules/qryn/node_modules
[1/33] ws@^8.4.0 installed at node_modules/_ws@8.8.1@ws
[2/33] @apla/clickhouse@^1.6.4 installed at node_modules/_@apla_clickhouse@1.6.4@@apla/clickhouse
[3/33] snappyjs@^0.6.1 installed at node_modules/_snappyjs@0.6.1@snappyjs
[4/33] @cloki/clickhouse-sql@1.2.2 installed at node_modules/_@cloki_clickhouse-sql@1.2.2@@cloki/clickhouse-sql
[5/33] xxhash-wasm@^0.4.2 installed at node_modules/_xxhash-wasm@0.4.2@xxhash-wasm
[6/33] stream-chain@^2.2.4 installed at node_modules/_stream-chain@2.2.5@stream-chain
[7/33] jsonic@^0.3.1 installed at node_modules/_jsonic@0.3.1@jsonic
[8/33] @qxip/plugnplay@^3.3.1 existed at node_modules/_@qxip_plugnplay@3.3.1@@qxip/plugnplay
[9/33] bnf@^1.0.1 installed at node_modules/_bnf@1.0.1@bnf
[10/33] yaml@^1.10.2 installed at node_modules/_yaml@1.10.2@yaml
[11/33] stream-json@^1.7.3 installed at node_modules/_stream-json@1.7.4@stream-json
[12/33] json-stable-stringify@^1.0.1 installed at node_modules/_json-stable-stringify@1.0.1@json-stable-stringify
[13/33] short-hash@^1.0.0 installed at node_modules/_short-hash@1.0.0@short-hash
[14/33] axios@^0.21.4 installed at node_modules/_axios@0.21.4@axios
[15/33] record-cache@^1.1.1 installed at node_modules/_record-cache@1.2.0@record-cache
[16/33] protocol-buffers-encodings@^1.1.1 installed at node_modules/_protocol-buffers-encodings@1.1.1@protocol-buffers-encodings
[17/33] fastify-websocket@^4.0.0 installed at node_modules/_fastify-websocket@4.3.0@fastify-websocket
[18/33] fastify-cors@^6.0.2 installed at node_modules/_fastify-cors@6.1.0@fastify-cors
[19/33] glob@^7.1.2 installed at node_modules/_glob@7.2.3@glob
[20/33] fastify-basic-auth@^0.4.0 installed at node_modules/_fastify-basic-auth@0.4.0@fastify-basic-auth
[21/33] protocol-buffers@^4.2.0 installed at node_modules/_protocol-buffers@4.2.0@protocol-buffers
[22/33] fastify-url-data@^2.4.0 installed at node_modules/_fastify-url-data@2.4.0@fastify-url-data
[23/33] scramjet@^4.36.1 installed at node_modules/_scramjet@4.36.7@scramjet
[24/33] patch-package@^6.4.7 installed at node_modules/_patch-package@6.4.7@patch-package
[25/33] fastify-static@^4.5.0 installed at node_modules/_fastify-static@4.7.0@fastify-static
[26/33] fastify-metrics@^8.0.0 installed at node_modules/_fastify-metrics@8.0.0@fastify-metrics
[27/33] handlebars@^4.7.7 installed at node_modules/_handlebars@4.7.7@handlebars
[28/33] pino@^7.6.5 installed at node_modules/_pino@7.11.0@pino
[29/33] protobufjs@^6.11.2 installed at node_modules/_protobufjs@6.11.3@protobufjs
[30/33] handlebars-helpers@^0.9.8 installed at node_modules/_handlebars-helpers@0.9.8@handlebars-helpers
[31/33] @qxip/plugnplay@^3.3.1 installed at node_modules/_@qxip_plugnplay@3.3.1@@qxip/plugnplay
[32/33] fastify@^3.25.1 installed at node_modules/_fastify@3.29.1@fastify
[33/33] date-fns@^2.27.0 installed at node_modules/_date-fns@2.29.1@date-fns
execute post install 2 scripts...
[1/2] scripts.postinstall protobufjs@^6.11.2 run "node scripts/postinstall", root: "/usr/lib/node_modules/qryn/node_modules/_protobufjs@6.11.3@protobufjs"
[1/2] scripts.postinstall protobufjs@^6.11.2 finished in 46ms
[2/2] scripts.postinstall qryn@2.1.9 run "patch-package", root: "/usr/lib/node_modules/qryn"
patch-package 6.4.7
Applying patches...
bnf@1.0.1 ✔
[2/2] scripts.postinstall qryn@2.1.9 finished in 125ms
peerDependencies WARNING ws@^8.4.0 requires a peer of bufferutil@^4.0.1 but none was installed
peerDependencies WARNING ws@^8.4.0 requires a peer of utf-8-validate@^5.0.2 but none was installed
deprecate @qxip/plugnplay@3.3.1 › require-subvert@^0.1.0 no longer maintained
deprecate handlebars-helpers@0.9.8 › micromatch@3.1.10 › snapdragon@0.8.2 › source-map-resolve@^0.5.0 See https://github.com/lydell/source-map-resolve#deprecated
deprecate handlebars-helpers@0.9.8 › micromatch@3.1.10 › snapdragon@0.8.2 › source-map-resolve@0.5.3 › urix@^0.1.0 Please see https://github.com/lydell/urix#deprecated
deprecate handlebars-helpers@0.9.8 › micromatch@3.1.10 › snapdragon@0.8.2 › source-map-resolve@0.5.3 › source-map-url@^0.4.0 See https://github.com/lydell/source-map-url#deprecated
deprecate handlebars-helpers@0.9.8 › micromatch@3.1.10 › snapdragon@0.8.2 › source-map-resolve@0.5.3 › resolve-url@^0.2.1 https://github.com/lydell/resolve-url#deprecated
deprecate handlebars-helpers@0.9.8 › helper-markdown@0.2.2 › remarkable@1.7.4 › autolinker@0.28.1 › gulp-header@^1.7.1 Removed event-stream from gulp-header
All packages installed (459 packages installed from npm registry, used 16s(network 16s), speed 771.41KB/s, json 405(2.07MB), tarball 9.88MB, manifests cache hit 0, etag hit 0 / miss 0)
Error: ENOENT: no such file or directory, chmod '/usr/lib/node_modules/qryn/cloki.js'
npminstall version: 6.5.0
npminstall args: /usr/bin/node /usr/lib/node_modules/cnpm/node_modules/npminstall/bin/install.js --fix-bug-versions --china --userconfig=/root/.cnpmrc --disturl=https://npmmirror.com/mirrors/node --registry=https://registry.npmmirror.com -g qryn
lmangani commented 2 years ago

Hey @ktpktr0 thanks for the report - could you confirm if this is an issue with qryn@2.1.10

ktpktr0 commented 2 years ago

I tried 2.1.9 and 2.1.10 with NPM, but failed to install 2.1.9 with cnpm. When I use cnpm install -g qryn@2.1.10 It seems to succeed.

Secondly, there are errors in the installation steps:

Install qryn and pm2 using npm

sudo npm install -g qryn pm2
Start qryn with pm2 and connect using your clickhouse-server instance details (ip/hostname and authentication)

cd $(dirname $(readlink -f `which cloki`)) \
  && CLICKHOUSE_SERVER="localhost" CLICKHOUSE_AUTH="default:password" CLICKHOUSE_DB="qryn" \
  pm2 start qryn--name "qryn"
lmangani commented 2 years ago

This must be Node 18 related as this is not an issue with 14.x and 16.x

ktpktr0 commented 2 years ago

This must be Node 18 related as this is not an issue with 14.x and 16.x

When I use node 16.x, only cnpm can successfully install version 2.1.10.

lmangani commented 2 years ago

@ktpktr0 what is your operating system? we cannot reproduce your issue so far

ktpktr0 commented 2 years ago

rockey linux 8.6

lmangani commented 11 months ago

Feel free to reopen if still interested for 3.x