BarelyFunctional

BarelyFunctional

I’m only asking here as I’ve switched to using asdf today, and erlang and elixir have installed successfully.

I’ve installed 3 different versions of nodejs and set a global version as follows.

asdf list-all nodejs

asdf install nodejs 8.4.0

echo -e 'nodejs 8.4.0' >> ~/.tool-versions

My ~/.tool-versions looks like this:

erlang 20.0
elixir 1.4.4
nodejs 8.4.0

Yet, when it should report that it’s installed when I do:

asdf current nodejs

it returns an error:

version 8.0 is not installed for nodejs

And if I try to install it (again):

asdf install nodejs 8.4.0

outputs:

% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  4756    0  4756    0     0   3942      0 --:--:--  0:00:01 --:--:--  3943

But when I test if it’s installed:

asdf list nodejs

output is:

No versions installed

I’ve seen this, but can’t find a fix: Install broken on OS X

This is holding up a new phoenix project I want to build, so would appreciate any help, thanks.

How have you fixed this?

Showing Posts 1 to 2

tme_317

tme_317

Hi @BarelyFunctional,

I did have a problem similar to this a few months ago… I don’t remember the exact steps I used to resolve but it has to do with the need to import the gpg keyring for the release team as described here: GitHub - asdf-vm/asdf-nodejs: Node.js plugin for asdf version manager · GitHub

You will need gpg installed installed and configured first… which I installed using homebrew. Once I followed the gpg instructions and installed the keyring everything worked great. Hope this helps.

BarelyFunctional

BarelyFunctional OP

Thanks tme_317!

I saw the gpg instructions but they failed, even after I adjusted the path to asdf that homebrew uses, but didn’t know I had to install gpg as I assumed the instructions failed because I was using homebrew not installing via git.

For anyone else installing asdf via homebrew, make sure to:

first install gpg

brew search gpg

brew install gpg

then modify the instructions from the github asdf-nodejs page to where homebrew has installed asdf (check the path below is correct first):

bash /usr/local/opt/asdf/plugins/nodejs/bin/import-release-team-keyring

And you should be able to

asdf install nodejs <version>

— All posts loaded —

Where Next? Top

Trending in Questions Top

RSP87
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
kszambelanczyk
Hello! Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app. I creat...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
FlyingNoodle
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New
psy-q
I’m trying to set up Emacs with elixir-ls via lsp-mode and credo via Flycheck. This should mostly be preconfigured as Flycheck picks up c...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge &amp; Solve. They are GUI (Emerge) and State management (S...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews