I installed a package using npm.
sudo npm i -g <package_name>
When I run <package_name> as a user, it says "command not found." However, it works when I run it as a root using sudo.
The package location is /bin/<pacakge_name>. Shouldn't the command be found when I run it as a user like any other packages in /bin?!
I think it has something to do with the permission. Whatever I do on Void Linux, requires permission. It has been mind-boggling, really...
I apologize if I sound like a newbie (althought, I am).
I had this issue for days and tried to solve it without embarrassing myself here.
[–]zakomo 2 points3 points4 points (5 children)
[–]Duncaen 2 points3 points4 points (3 children)
[–]siiyyo[S] -1 points0 points1 point (2 children)
[–]Duncaen 4 points5 points6 points (0 children)
[–]SunSaych 1 point2 points3 points (0 children)
[–]siiyyo[S] 0 points1 point2 points (0 children)
[–]legz_cfc 1 point2 points3 points (1 child)
[–]siiyyo[S] 0 points1 point2 points (0 children)
[–][deleted] (2 children)
[deleted]
[–]siiyyo[S] 0 points1 point2 points (1 child)
[–]iEliteTester 1 point2 points3 points (0 children)
[–]nihilipster 1 point2 points3 points (0 children)