Rider on Linux npm: command not found
I can't seem to get nodejs, npm working in linux, the first screen shot shows that node can't be found in the path but below in my terminal where it works fine. Also, when I try to choose the path "/usr/bin/" there's no node, npm or npx in that location. In the file manager those programs exist. In the integrated terminal I can see the path "/usr/bin" if I do echo $PATH but npm won't run "npm: command not found".


Please sign in to leave a comment.
Summary of the support ticket: Rider was not picking up environment variables after installation using a package manage. Resolved by reinstalling Rider from the Toolbox App.
I'm on Linux Mint.
I have originally installed Rider by downloading the tar.gz from the jetbrians site and I was then able to set the path to the node and npm binaries through the settings like the above image shows. Still couldn't build stuff with rider that needed npm.
I then removed the unpacked rider folder and the menu item I installed and installed the unofficial flatpak from the Software Manager in Linux Mint.
When opening the settings to locate npm and node, the folder /usr/local/ was not browsable from within the file manager in rider, even though it was readable and executable by “other” in linux, so it should've been visisble.
I then ran “sudo /path/to/flatpak/rider.sh” and was then able to browse down to the node and npm binaries in the file manager in Languages & Frameworks > NodeJS.
It still didn't build when running the same instance as sudo with the binaries pointed out in settings.
I then closed the rider instance and started a normal user instance of rider and navigated to settings > Languages & Frameworks > NodeJS and there was again no way to point to the node installation since the /usr/local/ folder is not visible. Just pasting the entire path doesn't work either since the OK button is greyed out. Building projects that rely on npm doesn't work.
Edit: Used the JetBrains Toolbox App as stated in the above comment and it worked flawlessly. Link: https://www.jetbrains.com/toolbox-app/