asdf-vm / asdf-vm/asdf-nodejs

bug: Installed node does not displays version and my application fails to run

Open
#303 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Shell
Stars
989
Forks
162
PR merge metrics
No merged PRs in 30d

Description

### Describe the Bug

I installed node js as per instructions. Afterwards, I run the command with the following outputs:

> asdf list
nodejs 18.0.0
pnpm 7.0.0

> node -version
No version is set for command node Consider adding one of the following versions in your config file at nodejs 18.0.0 Exception: node exited with 126 [tty 5], line 1:

The following is an attempt to run my application:
ng serve -c development

/home/pim/node_modules/.bin/ng: 16: exec: node: not found
 ELIFECYCLE  Command failed.
The terminal process "/usr/bin/bash '-c', 'pnpm run serve:dev'" failed to launch (exit code: 1).

Terminal will be reused by tasks, press any key to close it.

### Steps to Reproduce

1. Install asdf core.
2. Install node and pnpm dependencies
3. install nodejs and pnpm

### Expected Behaviour

I expected node -version to print the version number: 18.0.0

### Actual Behaviour

> node -version
No version is set for command node Consider adding one of the following versions in your config file at nodejs 18.0.0 Exception: node exited with 126 [tty 5], line 1:

### Environment

```shell
OS:
Linux scsc 5.4.0-74-generic asdf-vm/asdf#83-Ubuntu SMP Sat May 8 02:35:39 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

SHELL:
GNU bash, version 5.0.17(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

ASDF VERSION: v0.10.0-77fd510
ASDF ENVIRONMENT VARIABLES: ASDF_DIR=/home/stclair/.asdf

ASDF INSTALLED PLUGINS:
nodejs https://github.com/asdf-vm/asdf-nodejs.git master b2d06a7
pnpm https://github.com/jonathanmorley/asdf-pnpm.git master 95752a9
```

### asdf plugins affected (if relevant)

nodejs
pnpm

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.