Devolutions / Devolutions/UniGetUI

[FEATURE REQUEST] Detect NPM installs managed by FNM

Open
#2,658 17 comments 5 reactions 1 assignee Claimed by @marticliment View on GitHub
new-feature ready-to-go
Dominant language
C#
Stars
26.1k
Forks
924
Avg merge
15h 52m
Merged PRs (30d)
52

Description

### Please confirm these before moving forward

- [X] I have searched for my issue and have not found a work-in-progress/duplicate/resolved issue.
- [X] I have tested that this issue has not been fixed in the latest [(beta or stable) release](https://github.com/marticliment/WingetUI/releases/).
- [X] I have checked the [FAQ](https://github.com/marticliment/WingetUI#frequently-asked-questions) section for solutions.
- [X] This issue is about a bug (if it is not, please use the [correct template](https://github.com/marticliment/WingetUI/issues/new/choose)).

### UniGetUI Version

3.1.1

### Windows version, edition, and architecture

Windows 11 Pro 23H2 22631.4037 x64

### Describe your issue

UniGetUI doesn't seem to recognize npm when node installation is managed by a version manager such as [fnm](https://github.com/Schniz/fnm).
This is most likely due to NPM not being added to PATH which makes sense for a version manager to handle by itself.
Having the ability to set the NPM path manually would solve this issue.

### Steps to reproduce the issue

_No response_

### UniGetUI Log

```text
[8/23/2024 8:36:33 PM] __ __ _ ______ __ __ ______
/ / / /___ (_) ____/__ / /_/ / / / _/
/ / / / __ \/ / / __/ _ \/ __/ / / // /
/ /_/ / / / / / /_/ / __/ /_/ /_/ // /
\____/_/ /_/_/\____/\___/\__/\____/___/
Welcome to UniGetUI Version 3.1.1
[8/23/2024 8:36:33 PM]
[8/23/2024 8:36:33 PM] Version Code: 3.11
[8/23/2024 8:36:33 PM] Encoding Code Page set to 437
[8/23/2024 8:36:33 PM] Loaded language locale: en
[8/23/2024 8:36:33 PM] Randomly-generated background API auth token for the current session: y9p2c5calwm19m36qifnlzkabopj35cr1uusf3iyjrsjwr4759xlwmkasowni272
[8/23/2024 8:36:34 PM] Api running on http://localhost:7058
[8/23/2024 8:36:34 PM] Using System GSudo at C:\tools\gsudo\Current\gsudo.exe
[8/23/2024 8:36:34 PM] Command npm was not found on the system
[8/23/2024 8:36:34 PM] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
█ Name: Npm
█ Enabled: True
█ Found: False
█ THE MANAGER WAS NOT FOUND. PERHAPS IT IS NOT
█ INSTALLED OR IT HAS BEEN MISCONFIGURED
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[8/23/2024 8:36:34 PM] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
█ Name: PowerShell7
█ Enabled: False
█ THE MANAGER IS DISABLED
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[8/23/2024 8:36:34 PM] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
█ Name: .NET Tool
█ Enabled: True
█ Found: True
█ Fancy exe name: dotnet tool
█ Executable path: C:\Program Files\dotnet\dotnet.exe
█ Call arguments: tool
█ Version:
█ 8.0.400
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[8/23/2024 8:36:35 PM] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
█ Name: Winget
█ Enabled: True
█ Found: True
█ Fancy exe name: winget.exe
█ Executable path: C:\Users\user\AppData\Local\Microsoft\WindowsApps\winget.exe
█ Call arguments:
█ Version:
█ System WinGet CLI Version: v1.8.1911
█ Microsoft.WinGet.Client PSModule version: ""
█ Using Native WinGet helper (COM Api)
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[8/23/2024 8:36:35 PM] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
█ Name: Pip
█ Enabled: True
█ Found: True
█ Fancy exe name: pip
█ Executable path: C:\Python312\python.exe
█ Call arguments: -m pip
█ Version:
█ pip 24.2 from C:\Python312\Lib\site-packages\pip (python 3.12)
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[8/23/2024 8:36:36 PM] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
█ Name: Scoop
█ Enabled: True
█ Found: True
█ Fancy exe name: scoop
█ Executable path: C:\Windows\system32\windowspowershell\v1.0\powershell.exe
█ Call arguments: -NoProfile -ExecutionPolicy Bypass -Command scoop
█ Version:
█ Current Scoop version:
█ 859d1db5 chore(release): Bump to version 0.5.2 (#6080)

█ 'main' bucket:
█ fe5fbd388 circleci-cli: Update to version 0.1.30995

█ 'versions' bucket:
█ 8f7e21658 neochat-nightly: Update to version 9261

█ 'nerd-fonts' bucket:
█ b17bbac0 SarasaGothic: Update to version 1.0.19
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[8/23/2024 8:36:36 PM] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
█ Name: Chocolatey
█ Enabled: True
█ Found: True
█ Fancy exe name: choco.exe
█ Executable path: C:\ProgramData\chocolatey\bin\choco.exe
█ Call arguments:
█ Version:
█ 2.3.0
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[8/23/2024 8:36:36 PM] UniGetUI is up to date
[8/23/2024 8:36:36 PM] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
█ Name: PowerShell
█ Enabled: True
█ Found: True
█ Fancy exe name: powershell.exe
█ Executable path: C:\Windows\system32\windowspowershell\v1.0\powershell.exe
█ Call arguments: -NoProfile -Command
█ Version:
█ Name Value
█ ---- -----
█ PSVersion 5.1.22621.3958
█ PSEdition Desktop
█ PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
█ BuildVersion 10.0.22621.3958
█ CLRVersion 4.0.30319.42000
█ WSManStackVersion 3.0
█ PSRemotingProtocolVersion 2.3
█ SerializationVersion 1.1.0.1
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[8/23/2024 8:36:37 PM] Microsoft.Powershell.Client detection has been forcefully skipped as the module is not required on the current context
[8/23/2024 8:36:37 PM] Dependency WinGet PowerShell Module for manager Winget is present
[8/23/2024 8:36:38 PM] Dependency Scoop-Search for manager Scoop is present
[8/23/2024 8:36:38 PM] Dependency Git for manager Scoop is present
[8/23/2024 8:36:39 PM] Dependency .NET Tools Outdated for manager .NET Tool is present
[8/23/2024 8:36:39 PM] LoadComponentsAsync finished executing. All managers loaded. Proceeding to interface.
[8/23/2024 8:36:39 PM] Found 14 installed packages from Pip
[8/23/2024 8:36:39 PM] Found 6 installed packages from Scoop
[8/23/2024 8:36:39 PM] Downloaded new icons and screenshots successfully!
[8/23/2024 8:36:39 PM] Found 50 installed packages from Chocolatey
[8/23/2024 8:36:39 PM] Found 1 installed packages from .NET Tool
[8/23/2024 8:36:40 PM] Found 4 installed packages from PowerShell
[8/23/2024 8:36:41 PM] Found 0 available updates from .NET Tool
[8/23/2024 8:36:42 PM] Found 0 available updates from Chocolatey
```

### Package Managers Logs

```text
Manager Npm with version:

——————————————————————————————————————————
```

### Relevant information

_No response_

### Screenshots and videos

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.