How to Fix 'npm' Is Not Recognized or 'npm: command not found'
node -v works but npm says command not found, or 'npm' is not recognized? npm is missing from the folder your node lives in. Find out whether a distro package, a copied binary, or npm uninstall -g npm removed it, and put a full Node build back.