Thursday 13 April 2017

NPM, yarn, and Ubuntu 17.04

ELI5: How do I install npm and yarn on Ubuntu 17.04? I installed on windows by downloading/running installers from the websites; works great there.Context: I've tried the obvious stuff and google search links. The official repos are old to the point of not working. The most promising approach seems to be adding the binaries on the NPM site to the home directory, then adding the bin directory to /etc/environment ; still doesn't work, looking like this:PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/david/node-v7.9.0-linux-x64/bin"The PPA etc link that show in searches all break when trying to install.

Submitted April 13, 2017 at 04:46PM by firefrommoonlight

No comments:

Post a Comment