Skip to content

Xray scan failed: IOException: Could not scan npm project dependencies, because npm CLI is not in the PATH. #517

@Ahm-khd-seb

Description

@Ahm-khd-seb

Describe the bug
I want to scan my projects with Xray, so I installed the plugin Jfrog. I tested the connection to the repo, it's working. now when clicking the button 'scan projects' I get the error “Xray scan failed: IOException: Could not scan npm project dependencies, because npm CLI is not in the PATH.”
I use ZSH inside WSL in Idea
I have NPM version 11.3

To Reproduce
Install the plugin Jfrog from this website [JFrog Plugin for JetBrains IDEs | JetBrains Marketplace] and connect it to your repo via a URL and token or user/password and then restart the IDE.
now just go to the Jfrog icon to the lower left side and click scan my projects

Expected behavior
It should not be limited to NPM or Node. also, even when I created a Node project, it still gave the same issue

Screenshots
If applicable, add screenshots to help explain your problem.

Versions

  • JFrog IDEA plugin version: 2025.3.1.1
  • Operating system: Windows 11 Enterprise
  • Xray version: Version 3.124.26

Additional context
I think that the plugin is not looking at WSL or the terminal in Idea, it's looking at the CMD of Windows, just a guess!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions