E: Unable to locate package npm


 

When I try to install npm with `sudo apt-get install npm`, I got following error:



> 
> E: Unable to locate package npm
> 
> 
> 


Why can’t apt find npm? I’m using Debian 9 and already did run 



```
sudo apt-get install nodejs

```
From the official Node.js documentation:



> 
> A Node.js package is also available in the official repo for Debian Sid (unstable), Jessie (testing) and Wheezy (wheezy-backports) as “nodejs”. **It only installs a nodejs binary.**
> 
> 
> 


So, if you only type `sudo apt-get install nodejs` , it does not install other goodies such as **npm**. 


You need to type:



```
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs

```


> 
> Optional: install build tools
> 
> 
> To compile and install native add-ons from npm you may also need to install build tools:
> 
> 
> 



```
sudo apt-get install -y build-essential

```

More info: [Docs](https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions-enterprise-linux-fedora-and-snap-packages)
was caused because there was an "unhandled rejection error: eacces: permission denied, mkdir '/home//.npm/\_cache/index-<…>/

solved problem by just adding “sudo” in front

sudo npx create-react-app . hi mike, thanks for bringing this to our attention, i can confirm that i’m aware of this issue and a fix is in progress. i expect the latest version to be available the debian/rpm repositories in the coming days.

one short term work around would be to download the .deb or .rpm file directly from th… Program installation methods differ depending on the type of program you are trying to install. Redhat uses the RPM utility to manage .rpm programs, but if you have a .tar, [tar.gz](/posts/bad_link/36792?url=http%3A%2F%2Ftar.gz%2F), .tgz, or similar install file, the steps for installing are entirely different.



From an old post of mine at the *cough!**shameless plug**cough!* [other forum](http://www.justlinux.com) I moderate:



> 
>  In general, RPM (Redhat Package Manager) files contain pre-compiled, ready-to-run programs and associated files such as instalation/usage documentation, etc.  
> 
> .[tar.gz](/posts/bad_link/36792?url=http%3A%2F%2Ftar.gz%2F) files, on the other hand, often contain the source code for a given program. This isn't always true; but it often is. If that's the case, you'll have to compile the progam yourself; instructions on how to do so are usually included. The .[tar.gz](/posts/bad_link/36792?url=http%3A%2F%2Ftar.gz%2F) extension comes from the following:
> 
> 
> 
> The .tar part indicates that the file actually consists of multiple files combined into one large archive file using the "tar" (Tape ARchive) program. The .gz part means that the resulting .tar archive has been compressed using the "gzip" program (similar to zip or Winzip). tar does not, by itself, compress; it only "wraps" multiple files into a single archive file, hence the subsequent use of gzip to actually compress that archive.
> 
> 
> 
> If your distro supports the use of RPMs (Redhat and Mandrake do),you have a couple of choices:
> 
> 
> 
> - Your distro will include one or more installation program which you can use from within the GUI. These can vary depending on the desktop environment you use, but GnoRPM, KPackage, Software Manager and Package Manager are a few.
> 
> 
> 
> - Any rpm package can be installed from the command line using the "rpm" command. If you're not at the command line, open a terminal window and type "rpm -ivh *filename*" (no quotes). This will install the package and give you some on-screen feedback as the intallation progresses. Read the rpm man pages for more info on usage.
> 
> 
> 
> For .[tar.gz](/posts/bad_link/36792?url=http%3A%2F%2Ftar.gz%2F) or .tgz files, you can accomplish both the decompression and the extraction of the tarball (a common term for a .tar, .[tar.gz](/posts/bad_link/36792?url=http%3A%2F%2Ftar.gz%2F), or .tgz file) using the GNU version of the "tar" command (which is probably the version included with your distro). For example, to uncompress and extract a file, type the following at a prompt:  
> 
> tar xzvf *filename*. The "z" option will run the file through gzip/gunzip first (assuming you've installed gzip), and then extract the files in the tar archive. Once you've done that, look for a README or some instruction file which should tell you how to proceed from there.
> 
> 
> 


Read the following link from RH's support site for more RH 9-specific info on the subject and repost if you have further questions:



<http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/custom-guide/ch-graphical-rpm.html> wow.

good idea with the packages. i have compared it with another system. the package “opennms-plugin-protocol-radius” is missing here. (we use radius login)

i installed it and opennms works now.

but in the meantime i have deactivated 5 adapters. i’ll take that back one by one. let’s see what hap… hi,

do you have joy package installed with all necessary packages/dependencies ?

try to search for joy\_node or run joy package examples to find out what is going wrong. you got this error because the image is not in the local working directory and is your home folder. pandoc does not know where to find it with ~. 
i think you should use full path by expanding your image file path so that pandoc gets it. 
also, you can use knitr::include\_graphics to include images i… hi,

sorry for the late update.

the error is not caused by the pytorch installation.

it occurs when apt sever want to re-try the not fully installed package (nvidia-l4t-bootloader).

would you mind to remove the installation job and try it again?

$ apt-get --force-yes remove <pkgname>

if the iss… you have to forward the sip and rtp ports of the snom. (before the update this was done by a sip application layer gateway, but we had to remove this because it breaks security.)

[image]

[security announcement: mitigating nat slipstreaming - the ipfire blog](https://blog.ipfire.org/post/security-announcement-mitigating-nat-slipstreaming)

last autumn, we learned about … solution to my problem.

install python enabling framework and then do the rest of the installation as defined

python\_configure\_opts="--enable-framework" pyenv install 3.6.8

the issue was with wx and the need for a framework

when running a simple ws app

import wx

app = wx.app(false) # create a… what to do::

docker exec -it gitlab /bin/bash

then

apt install update-manager-core

then

do-release-upgrade