Comments on: How to Install Latest NodeJS and NPM in Linux https://www.tecmint.com/install-nodejs-npm-in-centos-ubuntu/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Tue, 21 Mar 2023 06:16:01 +0000 hourly 1 By: Ravi Saive https://www.tecmint.com/install-nodejs-npm-in-centos-ubuntu/comment-page-1/#comment-1653090 Thu, 18 Nov 2021 08:44:23 +0000 http://www.tecmint.com/?p=20824#comment-1653090 In reply to AllenF.

@AlienF,

Remove the lock file

$ sudo rm /var/lib/apt/lists/lock

Then run the command again as root user.

]]>
By: AllenF https://www.tecmint.com/install-nodejs-npm-in-centos-ubuntu/comment-page-1/#comment-1653001 Thu, 18 Nov 2021 07:05:59 +0000 http://www.tecmint.com/?p=20824#comment-1653001 Trying to install nodejs.

E: Could not open lock file /var/lib/apt/lists/lock – open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
W: Problem unlinking the file /var/cache/apt/pkgcache.bin – Remove Caches (13: Permission denied)
W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin – Remove caches (13: Permission denied)

]]>
By: AllenF https://www.tecmint.com/install-nodejs-npm-in-centos-ubuntu/comment-page-1/#comment-1652994 Thu, 18 Nov 2021 06:50:16 +0000 http://www.tecmint.com/?p=20824#comment-1652994 In reply to Ravi Saive.

That seemed to help. Thanks. I am going to try to reload nodejs
Allen

]]>
By: Ravi Saive https://www.tecmint.com/install-nodejs-npm-in-centos-ubuntu/comment-page-1/#comment-1652955 Thu, 18 Nov 2021 06:10:47 +0000 http://www.tecmint.com/?p=20824#comment-1652955 In reply to AllenF.

@AlienF,

Try these commands to fix the error.

$ export LC_ALL="en_US.UTF-8"
$ sudo dpkg-reconfigure locales
]]>
By: AllenF https://www.tecmint.com/install-nodejs-npm-in-centos-ubuntu/comment-page-1/#comment-1652916 Thu, 18 Nov 2021 05:33:27 +0000 http://www.tecmint.com/?p=20824#comment-1652916 I tried to load nodejs into RPi 3B+ w/ raspbian Deb.

Some errors:

Get:1 https://deb.nodesourcs.com/node_14.x bullseye/main armhf 
nodejs armhf 14.18.-deb-1nodesourse1 {22.9mb}
Fetched 22.9mb in 26s (873 kb/s)
apt-listchanges: can't set locale: make sure SLC-* and Slang are correct!
perl: warning: Setting locale failed.
perl: warning: Please check your locale settings
LANGUAGE = (unset),
LC_all = (unset),
LANG = "en_GB.UTF-8" are supported on you system.
perl: warning: Falling back to the standard  locale ("C")

Also,

$ nodejs --version bash: nodejs: command not found.
$ npm --version 6.14.15

What is wrong here and how do I fix it?

Thanks
AllenF

]]>