install Node and do not run npm (npm: command not found)

1

I have a problem executing npm is as if it were not installed, I have already tried to uninstall node and reinstall but it still does not come out, so I have read it is installed /usr/local/bin/node but I search the route and it is not, I found it /opt/node when I execute the node -v command if I get the node version but the npm I get that the command does not exist. Use Ubuntu 16.04.2

    
asked by Albert Arias 06.02.2018 в 23:26
source

1 answer

-1

You can not find npm because it is not in the path you describe, if you installed Node.js it should be in /usr/local/bin/

This is where you can call the package manager:

/usr/local/bin/npm
    
answered by 06.02.2018 в 23:33