ansible-role-nodejs icon indicating copy to clipboard operation
ansible-role-nodejs copied to clipboard

NPM version outdated

Open neilyoung opened this issue 3 years ago • 1 comments

Thanks for this role, but would there also be a way to setup NPM to an appropriate version?

I have set nodejs_version: "14.x" and this works, but no 18.04 the installed NPM is 6.14.17. That is definitely too old, npm install hangs every now and then forever. An upgrade to npm 8.13.2 recovers from that.

neilyoung avatar Jul 05 '22 10:07 neilyoung

Since this role installs the version that goes along with nodesource's distributions for different OSes, that may be an issue with their packaging. I know nodesource has had some build troubles on Ubuntu versions older than 20.04 lately, and that might be the problem.

geerlingguy avatar Sep 19 '22 15:09 geerlingguy

I solved that by installing an up to date npm version manually

neilyoung avatar Sep 28 '22 13:09 neilyoung