I've installed fkill globally by doing npm i -g fkill
. I can see it installed when I do npm list
. It shows only fkill as installed globally when I run npm list -g --depth=0
. However when I run fkill
I get "command not found".
Next I ran "npm get prefix" and got "/home/alex/.node_modules". Here is my PATH:
/home/alex/.node_modules/bin:/home/alex/.npm-global/bin:/home/alex/.node_modules/bin:/home/alex/.node_modules/lib/node_modules:/home/alex/.local/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/opt/cuda/bin:/var/lib/flatpak/exports/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/var/lib/snapd/snap/bin
This all began after I tried to run system updates with pacman and got node conflicts, so I uninstalled node and ran my updates, then reinstalled node.
Any ideas?
This is on Manjaro.
/usr/local/share/npm/bin
to your PATH in.bashrc
.export PATH=$PATH:/usr/local/share/npm/bin
andPATH=$PATH:/usr/local/share/npm/bin
to all of those files. Still can't run npm packages.