Skip to content

Instantly share code, notes, and snippets.

@aalfiann
Last active March 25, 2024 10:27
Show Gist options
  • Save aalfiann/d7a2f75a464f839f7e5f25b09a33a4d6 to your computer and use it in GitHub Desktop.
Save aalfiann/d7a2f75a464f839f7e5f25b09a33a4d6 to your computer and use it in GitHub Desktop.
Install NodeJS in Kali Linux

Verify that you have all required tools

sudo apt-get install python g++ make checkinstall fakeroot

Create tmp dir and switch to it

src=$(mktemp -d) && cd $src

Download NodeJS Source

  • Latest version
wget -N http://nodejs.org/dist/node-latest.tar.gz
  • If you want to use NodeJS LTS 10
wget -N https://nodejs.org/dist/v10.16.3/node-v10.16.3.tar.gz

Extract the content of the tar file

  • Latest version
tar xzvf node-latest.tar.gz
  • If you use NodeJS LTS 10
tar xzvf node-v10.16.3.tar.gz

Go to extracted directory

  • If you using latest, you must check directory available
ls
cd <directory_name_you_know_from_ls_command>/
  • If you use NodeJS LTS 10
cd node-v10.16.3/

Run configuration

./configure

Create .deb for Node

sudo fakeroot checkinstall -y --install=no --pkgversion $(echo $(pwd) | sed -n -re's/.+node-v(.+)$/\1/p') make -j$(($(nproc)+1)) install

Replace [node_*] with the name of the generated .deb package of the previous step

sudo dpkg -i node_*
@NasaTigyr
Copy link

hello,
i have a problem completing the last step ( Create .deb for Node). I get the error : /usr/bin/fakeroot 175 checkinstall: not found
Can you help?

@aalfiann
Copy link
Author

aalfiann commented Oct 9, 2023

hello, i have a problem completing the last step ( Create .deb for Node). I get the error : /usr/bin/fakeroot 175 checkinstall: not found Can you help?

it seems that checkinstall is not installed.

try to install checkinstall by run this

sudo apt -y install checkinstall

then repeat the step again.

@piuem
Copy link

piuem commented Mar 25, 2024

fakeroot, while creating message channels: Function not implemented This may be due to a lack of SYSV IPC support. fakeroot: error while starting the `faked' daemon.
/usr/bin/fakeroot: 1: kill: Usage: kill [-s sigspec | -signum | -sigspec] [pid | job]... or
kill -l [exitstatus]
Ese es el error

@piuem
Copy link

piuem commented Mar 25, 2024

fakeroot, while creating message channels: Function not implemented This may be due to a lack of SYSV IPC support. fakeroot: error while starting the `faked' daemon.
/usr/bin/fakeroot: 1: kill: Usage: kill [-s sigspec | -signum | -sigspec] [pid | job]... or
kill -l [exitstatus]
Que hago

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment