-
Notifications
You must be signed in to change notification settings - Fork 117
Description
Describe the bug
After installing @valkey/valkey-glide and running npm ls -all I'm seeing following error:
$ npm ls -all
test@1.0.0 /mnt/d/Projekty/test
└─┬ @valkey/valkey-glide@1.2.1
├── UNMET OPTIONAL DEPENDENCY @valkey/valkey-glide-darwin-arm64@1.2.1
├── UNMET OPTIONAL DEPENDENCY @valkey/valkey-glide-linux-arm64@1.2.1
├── UNMET OPTIONAL DEPENDENCY @valkey/valkey-glide-linux-musl-arm64@1.2.1
├─┬ @valkey/valkey-glide-linux-musl-x64@1.2.1
│ ├─┬ glide-rs@0.1.0 invalid: "file:rust-client" from node_modules/@valkey/valkey-glide/node_modules/@valkey/valkey-glide-linux-musl-x64
│ │ └─┬ save@2.9.0
│ │ ├── async@3.2.6
│ │ ├─┬ event-stream@4.0.1
│ │ │ ├── duplexer@0.1.2
│ │ │ ├── from@0.1.7
│ │ │ ├── map-stream@0.0.7
│ │ │ ├─┬ pause-stream@0.0.11
│ │ │ │ └── through@2.3.8 deduped
│ │ │ ├─┬ split@1.0.1
│ │ │ │ └── through@2.3.8 deduped
│ │ │ ├─┬ stream-combiner@0.2.2
│ │ │ │ ├── duplexer@0.1.2 deduped
│ │ │ │ └── through@2.3.8 deduped
│ │ │ └── through@2.3.8
│ │ ├── lodash.assign@4.2.0
│ │ └── mingo@6.5.2
│ ├── long@5.3.0
│ ├─┬ npmignore@0.3.1
│ │ └── minimist@1.2.8
│ └─┬ protobufjs@7.4.0
│ ├── @protobufjs/aspromise@1.1.2
│ ├── @protobufjs/base64@1.1.2
│ ├── @protobufjs/codegen@2.0.4
│ ├── @protobufjs/eventemitter@1.1.0
│ ├─┬ @protobufjs/fetch@1.1.0
│ │ ├── @protobufjs/aspromise@1.1.2 deduped
│ │ └── @protobufjs/inquire@1.1.0 deduped
│ ├── @protobufjs/float@1.0.2
│ ├── @protobufjs/inquire@1.1.0
│ ├── @protobufjs/path@1.1.2
│ ├── @protobufjs/pool@1.1.0
│ ├── @protobufjs/utf8@1.1.0
│ ├─┬ @types/node@22.13.1
│ │ └── undici-types@6.20.0
│ └── long@5.3.0 deduped
├─┬ @valkey/valkey-glide-linux-x64@1.2.1
│ ├─┬ glide-rs@0.1.0 invalid: "file:rust-client" from node_modules/@valkey/valkey-glide-linux-x64
│ │ └── save@2.9.0 deduped
│ ├── long@5.3.0 deduped
│ ├── npmignore@0.3.1 deduped
│ └── protobufjs@7.4.0 deduped
└── detect-libc@2.0.3
npm error code ELSPROBLEMS
npm error invalid: glide-rs@0.1.0 /mnt/d/Projekty/test/node_modules/@valkey/valkey-glide/node_modules/@valkey/valkey-glide-linux-musl-x64/node_modules/glide-rs
npm error invalid: glide-rs@0.1.0 /mnt/d/Projekty/test/node_modules/@valkey/valkey-glide-linux-x64/node_modules/glide-rs
npm error A complete log of this run can be found in: /home/mateusz/.npm/_logs/2025-02-12T17_39_22_313Z-debug-0.log
I'm having similar error when trying to package Serverless Framework project using esbuild, as one of the steps in the process is calling npm ls:
Error: Command failed with exit code 1: npm ls -json --omit=dev -long -all
npm error code ELSPROBLEMS
npm error invalid: glide-rs@0.1.0 /home/runner/work/unzipped/.esbuild/.build/node_modules/@valkey/valkey-glide-linux-musl-x64/node_modules/glide-rs
npm error invalid: glide-rs@0.1.0 /home/runner/work/unzipped/.esbuild/.build/node_modules/@valkey/valkey-glide-linux-x64/node_modules/glide-rs
I have @valkey/valkey-glide added as external.
Expected Behavior
npm ls -all should not report glide-rs@0.1.0 invalid: "file:rust-client" from node_modules/@valkey/valkey-glide/node_modules/@valkey/valkey-glide-linux-musl-x64.
Current Behavior
It errors out with following error:
glide-rs@0.1.0 invalid: "file:rust-client" from node_modules/@valkey/valkey-glide/node_modules/@valkey/valkey-glide-linux-musl-x64
Reproduction Steps
- Create
package.jsonfile:
{
"name": "test",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"description": "",
"dependencies": {
"@valkey/valkey-glide": "^1.2.1"
}
}
- Install dependencies with
$ npm install - Run
$ npm ls -all
Possible Solution
Additional Information/Context
When I try to use yarn instead of npm, here is what I see with yarn install:
[1/4] Resolving packages...
error Package "glide-rs" refers to a non-existing file '"/mnt/d/Projekty/test/rust-client"'.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Error: Package "glide-rs" refers to a non-existing file '"/mnt/d/Projekty/test/rust-client"'.
at MessageError.ExtendableBuiltin (/home/mateusz/.yarn/lib/cli.js:721:66)
at new MessageError (/home/mateusz/.yarn/lib/cli.js:750:123)
at FileResolver.<anonymous> (/home/mateusz/.yarn/lib/cli.js:50037:15)
at Generator.next (<anonymous>)
at step (/home/mateusz/.yarn/lib/cli.js:310:30)
at /home/mateusz/.yarn/lib/cli.js:321:13
Client version used
v1.2.1
Engine type and version
OS
Ubuntu
Language
TypeScript
Language Version
Node v20.18.3
Cluster information
No response
Logs
No response
Other information
No response