On Thu, 4 Jun 2020 at 22:00, Sam Ruby <ru...@intertwingly.net> wrote: > > On Thu, Jun 4, 2020 at 2:53 PM sebb <seb...@gmail.com> wrote: > > > > I tried updating init.pp to install 12.x, but the node installation > > does not seem to have been updated. > > Puppet instructions: > > exec { 'Add nodesource sources': > command => 'curl https://deb.nodesource.com/setup_12.x | bash -', > creates => '/etc/apt/sources.list.d/nodesource.list', > path => ['/usr/bin', '/bin', '/usr/sbin'] > } > > This, loosely translates, is equivalent to: > > if not File.exist('/etc/apt/sources.list.d/nodesource.list') > system 'curl https://deb.nodesource.com/setup_12.x | bash -' > end > > So the solution may be as simple as > > sudo rm ''/etc/apt/sources.list.d/nodesource.list'
There is no such file. However there is: -rw-r--r-- 1 root root 110 Feb 13 00:20 /etc/apt/sources.list.d/node-12.list $ cat /etc/apt/sources.list.d/nod* # This file is managed by Puppet. DO NOT EDIT. # node-12 deb https://deb.nodesource.com/node_12.x bionic main yet I get $ node --version v8.16.0 It looks like the setup script is not being run for some reason. > That may be all that is needed, but I'm not sure. I'm surprised to > not find either a package-lock.json or a node_modules directory on > whimsy-vm5. Yet tools such as the board agenda tool seem to work. > > - Sam Ruby > > > On Mon, 1 Jun 2020 at 17:56, sebb <seb...@gmail.com> wrote: > > > > > > Just saw the below warning when updating whimsy-vm5: > > > OK to take the recommended action? > > > > > > S. > > > > > > DEPRECATION WARNING > > > > > > Node.js 8.x LTS Carbon is no longer actively supported! > > > > > > You will not receive security or critical stability updates for this > > > version. > > > > > > You should migrate to a supported version of Node.js as soon as > > > possible. > > > Use the installation script that corresponds to the version of Node.js > > > you > > > wish to install. e.g. > > > > > > * https://deb.nodesource.com/setup_10.x — Node.js 10 LTS "Dubnium" > > > * https://deb.nodesource.com/setup_12.x — Node.js 12 LTS "Erbium" > > > (recommended) > > > * https://deb.nodesource.com/setup_14.x — Node.js 14 LTS "Fermium" > > > > > > Please see https://github.com/nodejs/Release for details about which > > > version may be appropriate for you. > > > > > > The NodeSource Node.js distributions repository contains > > > information both about supported versions of Node.js and supported Linux > > > distributions. To learn more about usage, see the repository: > > > https://github.com/nodesource/distributions