-
-
Notifications
You must be signed in to change notification settings - Fork 88
Closed
Labels
component/cliCLI tools relatedCLI tools relatedcomponent/nodeinfoNodeInfo relatedNodeInfo relatedhelp wantedExtra attention is neededExtra attention is neededtype/bugSomething isn't workingSomething isn't working
Description
Summary
I try to run the example fedify nodeinfo https://comam.es/snac/ taken from 1.9.0 release notes. It fails.
Expected Behavior
To print nodeinfo for the "https://comam.es/snac/".
Actual Behavior
The command clearly fails because, internally, it does not seem to be able to launch ‘npm’ correctly.
Environment
@fedify/cli: 1.9.0
OS: Windows 10 x64
Node.js: v22.20.0
Deno: 2.5.3
shell: cmd
Logs / Screenshots
C:\>fedify nodeinfo https://comam.es/snac/
error: Uncaught (in promise) PermissionDenied: Failed to spawn 'npm': Use a shell to execute .bat or .cmd files
const output = await cmd.output();
^
at spawnChildInner (ext:deno_process/40_process.js:185:17)
at spawn (ext:deno_process/40_process.js:427:10)
at Command.output (ext:deno_process/40_process.js:505:12)
at isCommandAvailable (file:///C:/Users/Username/AppData/Local/Temp/deno-compile-fedify.exe/packages/cli/src/init.ts:1512:30)
at locatePackageManager (file:///C:/Users/Username/AppData/Local/Temp/deno-compile-fedify.exe/packages/cli/src/init.ts:1536:13)
at file:///C:/Users/Username/AppData/Local/Temp/deno-compile-fedify.exe/packages/cli/src/init.ts:85:39
at Array.map (<anonymous>)
at file:///C:/Users/Username/AppData/Local/Temp/deno-compile-fedify.exe/packages/cli/src/init.ts:85:10
at eventLoopTick (ext:core/01_core.js:179:7)
C:\>deno --version
deno 2.5.3 (stable, release, x86_64-pc-windows-msvc)
v8 14.0.365.5-rusty
typescript 5.9.2
C:\>node --version
v22.20.0
C:\>cmd /v
Microsoft Windows [Version 10.0.19045.6396]
(c) Microsoft Corporation. All rights reserved.
C:\>npm --version
11.6.2
C:\>where npm
C:\Program Files\nodejs\npm
C:\Program Files\nodejs\npm.cmd
C:\Users\Username\AppData\Roaming\npm\npm
C:\Users\Username\AppData\Roaming\npm\npm.cmd
C:\>Steps to Reproduce
- run
cmd - type
fedify nodeinfo https://comam.es/snac/ - press return
Metadata
Metadata
Assignees
Labels
component/cliCLI tools relatedCLI tools relatedcomponent/nodeinfoNodeInfo relatedNodeInfo relatedhelp wantedExtra attention is neededExtra attention is neededtype/bugSomething isn't workingSomething isn't working