Score:2

Unable to compile 'syllable-5.0.0' (tar.gz) because node is not 12+

de flag

I am on Ubuntu 20.04. I am trying to install a syllable counting program from source.

Ref: https://github.com/words/syllable

From readme.md

This package is ESM only: Node 12+ is needed to use it and it must be imported instead of required.'' running the command:

$ node --version
v10.19.0

so i try to install a newer version of node but it fails:

~$ curl -fsSL deb.nodesource.com/setup_12.x | sudo -E bash - ## Installing the NodeSource Node.js 12.x repo... ## Populating apt-get cache... + apt-get update E: Malformed entry 1 in list file /etc/apt/sources.list.d/nodesource.list (Component) E: The list of sources could not be read. Error executing command, exiting – 

any help?!

guiverc avatar
cn flag
Does this answer your question? [Why don't the Ubuntu repositories have the latest versions of software?](https://askubuntu.com/questions/151283/why-dont-the-ubuntu-repositories-have-the-latest-versions-of-software)
guiverc avatar
cn flag
I see `nodejs` in version 12.22 available for later release(s), but the version you are using is what is supported in Ubuntu repositories for your 20.04 release (ie. 2020-April product).
Stamatis Diamantopoulos avatar
de flag
i should be able to update to a newer nodejs from other repos. isn't this right?
guiverc avatar
cn flag
Wait for answers (as has appeared) from other users.. I don't use `nodejs` so I won't provide details on fixes there; I answered on the 'why' isn't it there or "*already the newest version*" part of your question.
Score:0
ph flag

Please open URL: https://github.com/nodesource/distributions/blob/master/README.md#debinstall

For example, to install NodeJS 17+, you can follow the below instructions

# Using Ubuntu
curl -fsSL https://deb.nodesource.com/setup_17.x | sudo -E bash -
sudo apt-get install -y nodejs

And given URL containes more helpful information. I would suggest going through it.

Thanks.

Stamatis Diamantopoulos avatar
de flag
mee@mee-Inspiron-3543:~$ curl -fsSL https://deb.nodesource.com/setup_12.x | sudo -E bash - ## Installing the NodeSource Node.js 12.x repo... ## Populating apt-get cache... + apt-get update E: Malformed entry 1 in list file /etc/apt/sources.list.d/nodesource.list (Component) E: The list of sources could not be read. Error executing command, exiting
rɑːdʒɑ avatar
ph flag
@StamatisDiamantopoulos Its a different issue. Generally if you could google, you will figure it out.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.