:: Re: [DNG] npm and nodejs
Top Page
Delete this message
Reply to this message
Author: Antonio Trkdz.tab
Date:  
To: [DNG]
Subject: Re: [DNG] npm and nodejs
Hi All,

To install the latest(ish) nodejs from nodesource get the signin keys with:

curl -sSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo
apt-key add -

then, after touching /etc/apt/sources.list.d/nodesource.list, add the
following to the newly created file:

deb https://deb.nodesource.com/node_8.x stretch main
deb-src https://deb.nodesource.com/node_8.x stretch main

finally install nodejs with:

sudo apt-get update
sudo apt-get install nodejs

It works for ASCII and you'll get npm.

Hope it helps.

Cheers!

Antonio

On Thu, May 24, 2018 at 4:19 AM, Hendrik Boom <hendrik@???>
wrote:

> On Wed, May 23, 2018 at 02:44:07PM +1000, wirelessduck@??? wrote:
> >
> > > On 23 May 2018, at 11:44, Hendrik Boom <hendrik@???> wrote:
> > >
> > > I'm trying to try out a package (joplin) that is built using nodejs.
> > >
> > > Now the installation instructions seem to require npk, the nodejs
> package manager.
> > >
> > > And following links about npm, it appears that npm is part of nodejs.
> > >
> > > But I have installed nodejs from the ascii repossitory and still don't
> seem to be able to access npm.
> > >
> > > There are some packages with npm in their names, but they look to be
> add-one for npm rather than npm itself.
> > >
> > > Any ideas? Is this an area where the Devuan packages are broken?
> Will I have to go to foreign repositoories?
> > >
> > > -- hendrik
> >
> > If you want nodejs you should install from the nodesource apt repository
> to get the latest updates.
> >
> > https://nodejs.org/en/download/package-manager/#
> debian-and-ubuntu-based-linux-distributions
>
> Very unimpressed wth this installation method. It downloads an executable
> and proceeds to execute in root mode. Perhaps this comes naturally for
> those who write software that's meant to download and execute files in a
> browser, but, ... no.
>
> >
> > https://github.com/nodesource/distributions/blob/master/README.md
>
> Thanks for this link. It refers to actual deb's and signing keys.
>
> -- hendrik
>
> >
> > Unfortunately those instructions rely on lsb_release providing the
> correct output. There is a bug with lsb-release in ascii where it relies on
> parsing sources.list for detection. If “lsb_release -sc” returns “ascii”
> then you’re all fine but if it returns “testing” then you’ll just have to
> add the repo with the manual instructions.
> >
> > The devuan releases are aliased in the installer script to the Debian
> releases so you should just use stretch in your sources list.
> >
> > —Tom
> >
>
> > _______________________________________________
> > Dng mailing list
> > Dng@???
> > https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
>
> _______________________________________________
> Dng mailing list
> Dng@???
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
>