Open lholznagel opened 7 years ago
Huh, that's weird. Can you try running type "npm"
and post the output here? If it's empty, that'd explain this (but it shouldn't be empty however).
Ah, I looked yesterday into the code and tried to use type "npm"
.
The result was empty.
But typing type pip
was also empty, which was indicated as installed. But maybe this is because I forgot the quotes.
Can you try which pip
and which npm
? If those work, then I can change the command_exists
function to use which
if type
doesn't return a result (but we'd still use type
first because it's supposed to be faster).
On my Laptop both commands work. Will try later at home if it also works there.
Sorry for the long delay.
Using which
works on my home machine as well
neat, I'll make a patch soon :+1:
was this patch made? I faced similar problem today,
getting
• node missing. Installing...
while node is installed through nvm
➜ ~ node -v
v6.11.0
➜ ~ npm --version
5.0.4
➜ ~ type node
node is /home/pshkrjshnde/.nvm/versions/node/v6.11.0/bin/node
➜ ~ type npm
npm is /home/pshkrjshnde/.nvm/versions/node/v6.11.0/bin/npm
➜ ~ which node
/home/pshkrjshnde/.nvm/versions/node/v6.11.0/bin/node
➜ ~ which npm
/home/pshkrjshnde/.nvm/versions/node/v6.11.0/bin/npm
Hey, I just tried to install this script. During the installation progress it showed me that npm is not installed. But I have npm installed using
nvm
(https://github.com/creationix/nvm) Runningnode -v
andnpm -v
gives from both the version back.Would be awesome if the script recognises this.
Have a nice day :)