Установка npm kali linux

Social

NodeJs to put it simply is an open-source, cross-platform runtime environment for developing server-side web application.

Npm is the a package manager for javascript using to install and run things Such as Grunt

For more information on NodeJs or NPM follow the links in the more reading section of this post.

How to install using git

I usually find the easiest way to install both NodeJs and NPM on linux systems is straight from git. It provides the latest version and allows for patches to node and npm to be updated using pull requests and more from git, either way that’s out of scope for this tutorial so keeping it simple.

Open up a terminal and type the following

# Make our directory to keep it all in

mkdir ~/local

# Add the location to our path so that we can call it with bash

echo ‘export PATH=$HOME/local/bin:$PATH’ >> ~/.bashrc

Now we can start with downloading and compiling

git clone git://github.com/nodejs/node.git

cd node

./configure –-prefix=~/local

make install

cd ..

Now NPM (Node Package Manager)

git clone git://github.com/npm/npm.git

cd npm

make install

cd ../

Testing our installation

Open up a command prompt and type

node –version

npm -v

Both should return a version number at the time of writing this I got npm v3.5.4 and NodeJs v6.0.0-pre

Читайте также:  Manjaro linux vs kubuntu

Источник

How To Install npm on Kali Linux

In this tutorial we learn how to install npm on Kali Linux.

What is npm

Node.js is an event-based server-side javascript engine.

npm is the package manager for the Node JavaScript platform. It puts modules in place so that node can find them, and manages dependency conflicts intelligently.

It is extremely configurable to support a wide variety of use cases. Most commonly, it is used to publish, discover, install, and develop node programs.

There are three ways to install npm on Kali Linux . We can use apt-get , apt and aptitude . In the following sections we will describe each method. You can choose one of them.

Install npm Using apt-get

Update apt database with apt-get using the following command.

After updating apt database, We can install npm using apt-get by running the following command:

sudo apt-get -y install npm 

Install npm Using apt

Update apt database with apt using the following command.

After updating apt database, We can install npm using apt by running the following command:

Install npm Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

After updating apt database, We can install npm using aptitude by running the following command:

sudo aptitude -y install npm 

How To Uninstall npm on Kali Linux

To uninstall only the npm package we can use the following command:

Uninstall npm And Its Dependencies

To uninstall npm and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove npm 

Remove npm Configurations and Data

To remove npm configuration and data from Kali Linux we can use the following command:

Читайте также:  Dns probe finished nxdomain linux

Remove npm configuration, data, and all of its dependencies

We can use the following command to remove npm configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge npm 

References

Summary

In this tutorial we learn how to install npm using different package management tools like apt, apt-get and aptitude.

Источник

npm on Kali Linux

This is a short guide on how to uninstall npm package:

3. Details of npm package

Architecture: all
Provides: arborist (= 5.6.0), node-libnpmaccess (= 6.0.3), node-libnpmdiff (= 4.0.4), node-libnpmexec (= 4.0.11), node-libnpmfund (= 3.0.2), node-libnpmhook (= 8.0.3), node-libnpmorg (= 4.0.3), node-libnpmpack (= 4.1.2), node-libnpmpublish (= 6.0.4), node-libnpmsearch (= 5.0.3), node-libnpmteam (= 4.0.3), node-libnpmversion (= 3.0.6), node-npm (= 8.18.0), node-npm-packlist (= 5.1.1), node-npmcli-arborist (= 5.6.0), node-npmcli-ci-detect (= 2.0.0), node-npmcli-config (= 4.2.1), node-npmcli-disparity-colors (= 2.0.0), node-npmcli-git (= 3.0.2), node-npmcli-installed-package-contents (= 1.0.7), node-npmcli-map-workspaces (= 2.0.4), node-npmcli-metavuln-calculator (= 3.1.1), node-npmcli-name-from-folder (= 1.0.1), node-npmcli-node-gyp (= 2.0.0), node-npmcli-package-json (= 2.0.0), node-npmcli-promise-spawn (= 3.0.0), node-npmcli-query (= 1.1.1), node-npmcli-run-script (= 4.2.1), node-pacote (= 13.6.2), node-qrcode-terminal (= 0.12.0), npm-packlist (= 5.1.1), pacote (= 13.6.2), qrcode-terminal (= 0.12.0)
Depends: ca-certificates, node-abbrev, node-agent-base, node-ansistyles, node-aproba, node-archy, node-asap, node-binary-extensions, node-cacache (>= 16), node-chalk, node-chownr, node-cli-table3, node-colors, node-columnify, node-cssesc, node-debug, node-depd, node-dezalgo, node-diff, node-emoji-regex, node-encoding, node-glob, node-got, node-graceful-fs, node-gyp, node-hosted-git-info, node-http-proxy-agent, node-https-proxy-agent, node-ini, node-ip, node-ip-regex, node-json-parse-better-errors, node-jsonparse, node-lru-cache, node-minimatch, node-minipass, node-mkdirp, node-ms, node-negotiator, node-nopt, node-normalize-package-data, node-npm-bundled, node-npm-normalize-package-bin, node-npm-package-arg, node-npmlog, node-once, node-p-map, node-postcss-selector-parser, node-promise-retry, node-promzard, node-read, node-read-package-json, node-rimraf, node-semver, node-ssri, node-string-width, node-strip-ansi, node-tar, node-text-table, node-validate-npm-package-license, node-validate-npm-package-name, node-which, node-wrappy, node-write-file-atomic, node-yallist, nodejs:any
Recommends: git, node-tap
Suggests: node-opener
Size: 1146764
SHA256: b177d67a52ec827346525989d0433f8d797cfaef703d0548d37ab8a7345b9a6c
SHA1: e2faf35abaf675e1340cc0c839dabd72a36225a2
MD5sum: 856f7515659292966399f185eda1b87a
Description: package manager for Node.js
Node.js is an event-based server-side javascript engine.
.
npm is the package manager for the Node JavaScript platform. It puts
modules in place so that node can find them, and manages dependency
conflicts intelligently.
.
It is extremely configurable to support a wide variety of use cases.
Most commonly, it is used to publish, discover, install, and develop
node programs.
.
Install also node-opener to have full npm features enabled.
Description-md5: 0038510bc0647e0d6e2fa9ea24bf2f27
Homepage: https://docs.npmjs.com/
Section: web
Priority: optional
Filename: pool/main/n/npm/npm_8.18.0~ds1-1_all.deb

Читайте также:  How to write to file linux

4. References on Kali Linux

5. The same packages on other Linux Distributions

npm (3.5.2-0ubuntu4) Ubuntu 18.04 LTS (Bionic Beaver)

npm (3.5.2-0ubuntu4) Ubuntu 16.04 LTS (Xenial Xerus)

npm (7.5.2+ds-2) Ubuntu 21.10 (Impish Indri)

npm (8.5.1~ds-1) Ubuntu 22.04 LTS (Jammy Jellyfish)

npm (5.8.0+ds6-4+deb10u2) Debian 10 (Buster)

Источник

Устанавливаем NodeJS в Kali

securixy.kz

Сегодня я поведаю Вам как правильно установить NodeJS с решением проблем которые могут появиться в процессе установки.

NodeJS — это платформа превращающая узкоспециализированный язык JavaScript в язык общего назначения.

При стандартной установке, через apt install node и apt install npm возникает проблема, при которой установленная NodeJS не работает с установленной в скупе npm из-за разницы в поддерживаемых версиях.

NodeJS_err

Итак, давайте по шагам произведем проверку и установку всех зависимостей.

sudo apt install python g++ make checkinstall fakeroot

Итак проблема первая, в последних сборках и репозиториях дебиана нет пакета checkinstall и мы поставим его вручную добавив старый репозиторий кали:

sudo nano /etc/apt/sources.list
deb http://old.kali.org/kali moto main non-free contrib

затем обновляем репозитории и ставим необходимый софт

sudo apt update && apt upgrade -y && apt install checkinstall

Создаем временную папку, переходим в нее и скачиваем в нее последнюю версию Node.js

wget -N http://nodejs.org/dist/node-latest.tar.gz

Затем распаковываем и запускаем конфигурацию для подготовки пакета:

tar xzvf node-latest.tar.gz && cd node-v* && ./configure
sudo fakeroot checkinstall -y --install=no --pkgversion $(echo $(pwd) | sed -n -re's/.+node-v(.+)$/\1/p') make -j$(($(nproc)+1)) install

Сразу скажу придется прилично подождать, т.к. это операция не быстрая.

4. Устанавливаем полученный пакет Node:

Ну и финальный штрих — проверяем версии

Надеюсь Вам помогла данная статья…

Рубрики

Новости

Источник

Оцените статью
Adblock
detector