无法在 Ubuntu 16.04 中安装 npm

无法在 Ubuntu 16.04 中安装 npm

我已经安装了nodejs

$ nodejs -v 
4.2.6

现在我正在尝试安装 npm 我试过了

sudo apt install aptitude

sudo aptitude install npm

它正在显示

/usr/local/bin/node: 1: /usr/local/bin/node: cannot create 8��@P_�@@$@@@@@��@@@@�"��"� �"��"�'���
                                                    H&�H&'H&'00@@DDP�td �� �� ��ttQ�td/lib64/ld-linux-x86-64.so.2GNUGNU
                 eØGcP?ֺ����x��)Ě��@�: Directory nonexistent
/usr/local/bin/node: 1: /usr/local/bin/node: ELF: not found
/usr/local/bin/node: 2: /usr/local/bin/node: 3�
                                               : not found
/usr/local/bin/node: 3: /usr/local/bin/node: Syntax error: ")" unexpected

如何安装 npm

相关内容