Skip to content

[ERROR] npm not available anymore after installing nodejs on Debian #1770

@gremo

Description

@gremo

Describe your bug
npm is not available anymore aflter installing nodejs package on Debian. I'm pretty sure it was installed with nodejs ultil December maybe, I'm maintaing some Docker images with Node and npm was always installed with it.

Distribution Information:

  • OS: Debian
  • Version: 12 (bookworm)

Node Version:

  • Node: 18

To Reproduce
Steps to reproduce the behavior (NODE_VERSION is 18 in this case):

mkdir -p /etc/apt/keyrings
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_VERSION.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
apt-get install -y --no-install-recommends nodejs

Expected behavior
npm executable is installed along with node.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions