-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[BUG] sh: 1: xdg-open: not found #5903
Labels
Bug
thing that needs fixing
Priority 0
will get attention right away
Release 9.x
work is associated with a specific npm 9 release
Comments
bnb
added
Bug
thing that needs fixing
Needs Triage
needs review for next steps
Release 9.x
work is associated with a specific npm 9 release
labels
Nov 29, 2022
logfile output: 0 verbose cli /home/bnb/.local/share/fnm/node-versions/v19.1.0/installation/bin/node /mnt/wslg/runtime-dir/fnm_multishells/27976_1669703149802/bin/npm
1 info using [email protected]
2 info using [email protected]
3 timing npm:load:whichnode Completed in 0ms
4 timing config:load:defaults Completed in 1ms
5 timing config:load:file:/home/bnb/.local/share/fnm/node-versions/v19.1.0/installation/lib/node_modules/npm/npmrc Completed in 0ms
6 timing config:load:builtin Completed in 0ms
7 timing config:load:cli Completed in 1ms
8 timing config:load:env Completed in 1ms
9 timing config:load:file:/home/bnb/GitHub/bnb/bitandbang/.npmrc Completed in 1ms
10 timing config:load:project Completed in 3ms
11 timing config:load:file:/home/bnb/.npmrc Completed in 1ms
12 timing config:load:user Completed in 1ms
13 timing config:load:file:/home/bnb/.local/share/fnm/node-versions/v19.1.0/installation/etc/npmrc Completed in 0ms
14 timing config:load:global Completed in 0ms
15 timing config:load:setEnvs Completed in 1ms
16 timing config:load Completed in 8ms
17 timing npm:load:configload Completed in 8ms
18 timing npm:load:mkdirpcache Completed in 0ms
19 timing npm:load:mkdirplogs Completed in 0ms
20 verbose title npm publish
21 verbose argv "publish"
22 timing npm:load:setTitle Completed in 1ms
23 timing config:load:flatten Completed in 2ms
24 timing npm:load:display Completed in 2ms
25 verbose logfile logs-max:10 dir:/home/bnb/.npm/_logs/2022-11-29T06_42_23_988Z-
26 verbose logfile /home/bnb/.npm/_logs/2022-11-29T06_42_23_988Z-debug-0.log
27 timing npm:load:logFile Completed in 3ms
28 timing npm:load:timers Completed in 0ms
29 timing npm:load:configScope Completed in 0ms
30 timing npm:load Completed in 15ms
31 silly logfile start cleaning logs, removing 1 files
32 timing config:load:flatten Completed in 0ms
33 verbose publish [ '.' ]
34 silly logfile done cleaning log files
35 timing arborist:ctor Completed in 0ms
36 timing arborist:ctor Completed in 0ms
37 notice
38 notice 📦 [email protected]
39 notice === Tarball Contents ===
40 notice 1.1kB LICENSE
40 notice 293B README.md
40 notice 233B bin/card.js
40 notice 1.8kB bin/output
40 notice 914B package.json
41 notice === Tarball Details ===
42 notice name: bitandbang
42 notice version: 3.0.1
42 notice filename: bitandbang-3.0.1.tgz
42 notice package size: 1.8 kB
42 notice unpacked size: 4.3 kB
42 notice shasum: e41e2f220aab4bac285b1c92b77529028be79442
42 notice integrity: sha512-uopvx5yoKCJmR[...]v/TqtK3drTsSA==
42 notice total files: 5
43 notice
44 notice Publishing to https://registry.npmjs.org/ with tag latest and default access
45 http fetch PUT 401 https://registry.npmjs.org/bitandbang 275ms
46 http fetch GET 202 https://registry.npmjs.org/-/v1/done?authId=npm_*** 138ms
47 timing command:publish Completed in 1849ms
48 verbose stack Error: command failed
48 verbose stack at ChildProcess.<anonymous> (/home/bnb/.local/share/fnm/node-versions/v19.1.0/installation/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:53:27)
48 verbose stack at ChildProcess.emit (node:events:513:28)
48 verbose stack at maybeClose (node:internal/child_process:1098:16)
48 verbose stack at Socket.<anonymous> (node:internal/child_process:456:11)
48 verbose stack at Socket.emit (node:events:513:28)
48 verbose stack at Pipe.<anonymous> (node:net:298:12)
49 verbose cwd /home/bnb/GitHub/bnb/bitandbang
50 verbose Linux 5.15.74.2-microsoft-standard-WSL2
51 verbose node v19.1.0
52 verbose npm v9.1.2
53 error code 127
54 error command failed
55 error command sh -c xdg-open https://www.npmjs.com/auth/cli/npm_***
56 error sh: 1: xdg-open: not found
57 verbose exit 127
58 timing npm Completed in 1877ms
59 verbose code 127
60 error A complete log of this run can be found in:
60 error /home/bnb/.npm/_logs/2022-11-29T06_42_23_988Z-debug-0.log |
this looks like https:/npm/promise-spawn/blob/main/lib/index.js#L134-L136 isn't working, WSL should be using the windows |
nlf
added
Priority 1
high priority issue
Priority 0
will get attention right away
and removed
Priority 1
high priority issue
labels
Nov 30, 2022
nlf
added a commit
to npm/promise-spawn
that referenced
this issue
Dec 12, 2022
Sorry for not getting back to you sooner in this @nlf, thanks for the fix ❤️ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Bug
thing that needs fixing
Priority 0
will get attention right away
Release 9.x
work is associated with a specific npm 9 release
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
Running
npm publish
fails because xdg-open is not installed.Expected Behavior
Running
npm publish
worksSteps To Reproduce
fnm
to install Node.jsnpm i -g npm
Environment
The text was updated successfully, but these errors were encountered: