Ask coding questions

← Back to all posts
How do I get those PKGs? I can't use the pkg install command
GastnAcosta (0)

How do I get those PKGs? I can't use the pkg install command
I've already used npm install but that hasn't worked either because npm is different than pkg. I need those packages, will they help me?

Comments
hotnewtop
Coder100 (17133)

Node can't install those things.

You have to use bash instead.

GastnAcosta (0)

@Coder100 can you install a normal package with bash?

InvisibleOne (2681)

First install it with npm
npm install package_name
then in your code, you have to require that package

const http = require("http");

// --- ^^ Something like that --- \\
tussiez (1532)

@InvisibleOne OP is trying to install a normal package, not a Node.js one

GastnAcosta (0)

@InvisibleOne I want to install a normal package

tussiez (1532)

@GastnAcosta This is an easy Google search. “Linux install package” ???