Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ERROR] Node.js 16 on Debian bookworm Installation fail #1594

Closed
JanMalte opened this issue Jun 26, 2023 · 1 comment
Closed

[ERROR] Node.js 16 on Debian bookworm Installation fail #1594

JanMalte opened this issue Jun 26, 2023 · 1 comment
Labels

Comments

@JanMalte
Copy link

Describe your bug
npm is missing after running install script.
The package from debian is installed instead of the nodesource package.

Distribution Information:

  • OS: Debian
  • Version: bookworm
  • Other info if applicable: docker image

Node Version:

  • Node: 16

To Reproduce
Steps to reproduce the behavior:

  1. Execute Debian Docker Image python:3.8
  2. Execute Installation instructions for Node.js v16:
  3. Run npm --version

Expected behavior
npm is installed and returns the current version

Additional context

$ apt update && apt install -y nodejs
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://deb.debian.org/debian bookworm-updates InRelease
Hit:3 http://deb.debian.org/debian-security bookworm-security InRelease
Hit:4 https://deb.nodesource.com/node_16.x bookworm InRelease
Reading package lists...
Building dependency tree...
Reading state information...
3 packages can be upgraded. Run 'apt list --upgradable' to see them.
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
nodejs is already the newest version (18.13.0+dfsg1-1).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
$ apt-cache policy nodejs
nodejs:
  Installed: 18.13.0+dfsg1-1
  Candidate: 18.13.0+dfsg1-1
  Version table:
 *** 18.13.0+dfsg1-1 500
        500 http://deb.debian.org/debian bookworm/main amd64 Packages
        100 /var/lib/dpkg/status
     16.20.1-deb-1nodesource1 500
        500 https://deb.nodesource.com/node_16.x bookworm/main amd64 Packages
$ python --version
Python 3.8.17
$ node --version
v18.13.0
$ npm --version
/usr/bin/bash: line 160: npm: command not found
@JanMalte JanMalte added the bug label Jun 26, 2023
@JanMalte
Copy link
Author

Duplicate of #1579

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant