Installation node under ubuntu

1. Wget from the official website to source package, the following is no configure file, so no ./configure, add the export directly in the etc / profile file on it

2 . However, not so smoothly, using node in uubuntu, and did not react, but the input npm display.

       Solution:

 

Note: In the beginning I am the root user, which the node discovery path usr / bin / node, then file / usr / sbin / node, we found is the symbol link,ax25-node

            Execute rm / usr / sbin / node, then the node (At this point I still root user), can not find the command prompt.

            Then su boo (this is my regular user account), then the node is successful, but this time,

Boo @ boogoogle: / usr $ Which the Node
/ usr / bin / the Node
Boo @ boogoogle: / usr $ File / usr / bin / the Node
/ usr / bin / the Node: symbolic Link to `/ etc / Alternatives / the Node '
found, node path under usur / bin, and the file is not the result of the symbolic ax25


So the initial guess tentative solution may also be: change root in / usr / sbin / node is symbolic of a non-ax25

In a supplementary knowledge:

  The difference between the bin and sbin

/sbin: commands in this dir are all system installed super user commands

          In other words, the files in the root user sbin command requires Administrator privileges to call

/ Bin: instruction commands in this dir are all system installed user commands the system all users have permission to call

        

Reproduced in: https: //my.oschina.net/boogoogle/blog/546113

Guess you like

Origin blog.csdn.net/weixin_34311757/article/details/92043725