Node.js 无法在kali linux上安装节点

Node.js 无法在kali linux上安装节点,node.js,linux,git,Node.js,Linux,Git,按照以下步骤从git安装node js。我正在运行kali linux 2016 # this way is best if you want to stay up to date # or submit patches to node or npm mkdir ~/local echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc . ~/.bashrc # could also fork, and then clone yo

按照以下步骤从git安装node js。我正在运行kali linux 2016

# this way is best if you want to stay up to date
# or submit patches to node or npm

mkdir ~/local
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc

# could also fork, and then clone your own fork instead of the official one

git clone git://github.com/joyent/node.git
cd node
./configure --prefix=~/local
make install
cd ..

git clone git://github.com/isaacs/npm.git
cd npm
make install # or `make link` for bleeding edge
我尚未成功安装npm。因为错误是那个命令

node
找不到。但我成功地安装了node。 甚至在小路上回响。使用预编译的二进制文件会出现什么问题

提取
.tar.xz
/opt/node
(例如),并创建一个simbolic链接以供使用:

ln -s /opt/node/bin/node /usr/bin/node
ln -s /opt/node/bin/npm /usr/bin/npm

Kali linux用于渗透测试,它不是通用GNU/linux发行版。