Nvm: /usr/bin/env: node: No such file or directory

Created on 16 Dec 2016  ยท  28Comments  ยท  Source: nvm-sh/nvm

I'm trying to install Node.js on my Netgear ReadyNAS (Architecture = ARM v71) using this method

cd /home/admin
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.1/install.sh | bash
source .bashrc
nvm install 6.9.1

But I got an error after the last command

/usr/bin/env: node: No such file or directory

See complete result

admin@ReadyNAS:~$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.1/install.sh | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  7766  100  7766    0     0  22631      0 --:--:-- --:--:-- --:--:-- 22707
=> Downloading nvm from git to '/home/admin/.nvm'
=> Cloning into '/home/admin/.nvm'...
remote: Counting objects: 6025, done.
remote: Compressing objects: 100% (13/13), done.
remote: Total 6025 (delta 5), reused 0 (delta 0), pack-reused 6012
Receiving objects: 100% (6025/6025), 1.71 MiB | 805.00 KiB/s, done.
Resolving deltas: 100% (3751/3751), done.
Checking connectivity... done.
* (detached from v0.31.1)
  master

=> Appending source string to /home/admin/.bashrc
=> Close and reopen your terminal to start using nvm
admin@ReadyNAS:~$ source .bashrc
admin@ReadyNAS:~$ nvm install 6.9.1
Downloading https://nodejs.org/dist/v6.9.1/node-v6.9.1-linux-armv7l.tar.xz...
######################################################################## 100.0%
/usr/bin/env: node: No such file or directory
nvm is not compatible with the npm config "prefix" option: currently set to ""
Run `nvm use --delete-prefix v6.9.1` to unset it.

What am I doing wrong ?
(I already used this method on a x86 64 bit Ubuntu machine and on a Mac Mini ... and it works fine)

installing node

Most helpful comment

@ljharb I have this result

admin@ReadyNAS:~$ nvm uninstall node
Uninstalled node v7.2.1
admin@ReadyNAS:~$ nvm install node
Downloading https://nodejs.org/dist/v7.2.1/node-v7.2.1-linux-armv7l.tar.xz...
######################################################################## 100.0%
/usr/bin/env: node: No such file or directory
nvm is not compatible with the npm config "prefix" option: currently set to ""
Run `nvm use --delete-prefix v7.2.1` to unset it.

Here the content of my .bashrcfile

admin@ReadyNAS:~$ cat .bashrc 
export NVM_DIR="/home/admin/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"  # This loads nvm

All 28 comments

What does nvm debug output? Do you have a ~/.npmrc file with "prefix" in it? Are you using symlinks for $HOME or $NVM_DIR, perhaps?

@ljharb I don't know ... where can I find this nvm debug ?
I do not have any ~/.npmrc file
I'm not using symlinks for $HOME or $NVM_DIR

admin@ReadyNAS:~$ echo $HOME
/home/admin
admin@ReadyNAS:~$ echo $NVM_DIR
/home/admin/.nvm

@babonet13 nvm is a sourced shell function, so you just invoke it on a shell prompt.

@ljharb I've got this result

admin@ReadyNAS:~$ ls -a
.  ..  .AppleDB  .bash_history  .bashrc  ._.DS_Store  .DS_Store  .nvm  .ssh
admin@ReadyNAS:~$ nvm debug
-bash: nvm: command not found

ok, so that's the first problem - you need to make sure you're sourcing nvm.sh in your profile file. See "troubleshooting" and "manual install" in the readme.

@ljharb OK here is the result

admin@ReadyNAS:~$ cat .bashrc
export NVM_DIR="/home/admin/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"  # This loads nvm
admin@ReadyNAS:~$ source .bashrc 



md5-5271f2a3390c0a95422478be5768f733



admin@ReadyNAS:~$ nvm debug
nvm --version: v0.31.1
$SHELL: /bin/bash
$HOME: /home/admin
$NVM_DIR: '$HOME/.nvm'
$PREFIX: ''
$NPM_CONFIG_PREFIX: ''
nvm current: none
which node: 
which iojs: 
which npm: 
npm config get prefix: -bash: npm: command not found
npm root -g: -bash: npm: command not found

ok, so in that shell (where nvm is working), what happens if you do nvm install node?

@ljharb Hereafter the result

admin@ReadyNAS:~$ cat .bashrc 
export NVM_DIR="/home/admin/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"  # This loads nvm
admin@ReadyNAS:~$ source .bashrc 
admin@ReadyNAS:~$ nvm install node
Downloading https://nodejs.org/dist/v7.2.1/node-v7.2.1-linux-armv7l.tar.xz...
######################################################################## 100.0%
/usr/bin/env: node: No such file or directory
nvm is not compatible with the npm config "prefix" option: currently set to ""
Run `nvm use --delete-prefix v7.2.1` to unset it.

@babonet13 thanks - i assume nvm use --delete-prefix node works fine.

What does env | grep -i prefix print out?

@ljharb Hi Jordan, here are the results

admin@ReadyNAS:~$ cat .bashrc 

export NVM_DIR="/home/admin/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"  # This loads nvm
admin@ReadyNAS:~$ source .bashrc 
admin@ReadyNAS:~$ nvm use --delete-prefix node
/usr/bin/env: node: No such file or directory
/usr/bin/env: node: No such file or directory
admin@ReadyNAS:~$ env | grep -i prefix
admin@ReadyNAS:~$ 



md5-81e1db53cf2e0f3f1933b78659176ec0



admin@ReadyNAS:~$ env
NVM_RC_VERSION=
NVM_CD_FLAGS=
TERM=xterm-256color
SHELL=/bin/bash
SSH_CLIENT=192.168.0.2 55412 22
NVM_PATH=/home/admin/.nvm/versions/node/v7.2.1/lib/node
SSH_TTY=/dev/pts/0
NVM_DIR=/home/admin/.nvm
USER=admin
MAIL=/var/mail/admin
PATH=/home/admin/.nvm/versions/node/v7.2.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
NVM_NODEJS_ORG_MIRROR=https://nodejs.org/dist
PWD=/home/admin
LANG=en_US.UTF-8
SHLVL=1
HOME=/home/admin
LOGNAME=admin
SSH_CONNECTION=192.168.0.2 55412 192.168.0.10 22
NVM_BIN=/home/admin/.nvm/versions/node/v7.2.1/bin
NVM_IOJS_ORG_MIRROR=https://iojs.org/dist
_=/usr/bin/env

Hmm, nothing about that seems wrong.

I do see "ReadyNAS" in your prompt - that implies you might have a network-mounted filesystem. Is that the case?

@ljharb My prompt is looking like this

Welcome to ReadyNASOS 6.6.0

Last login: Sat Dec 17 09:35:03 2016 from 192.168.0.2
admin@ReadyNAS:~$ 

I do not mount anything ...
... I'm just connecting me (as "admin") to my ReadyNAS with ssh

Do you thinks my problem could come from my ARM (v7.1) architecture ?

admin@ReadyNAS:~$ uname -a
Linux ReadyNAS 4.1.30.armada.1 #1 SMP Thu Sep 22 16:39:49 PDT 2016 armv7l GNU/Linux

ARM might cause an issue with some versions of node, but that wouldn't cause the problem you're seeing.

Can you confirm that if you nvm use with --delete-prefix, everything works?

@ljharb I think It do not works ... See the result

admin@ReadyNAS:~$ cat .bashrc
export NVM_DIR="/home/admin/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"  # This loads nvm

```sh
admin@ReadyNAS:~$ source .bashrc

```sh
admin@ReadyNAS:~$ nvm use --delete-prefix
No .nvmrc file found

[ nvm --help output elided ]

Sorry, I should have been more explicit. Try nvm use node --delete-prefix

@ljharb I've got an error as you can see :

Welcome to ReadyNASOS 6.6.0

Last login: Sat Dec 17 21:41:06 2016 from 192.168.0.2
admin@ReadyNAS:~$ cat .bashrc 
export NVM_DIR="/home/admin/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"  # This loads nvm

admin@ReadyNAS:~$ source .bashrc 

admin@ReadyNAS:~$ nvm use node --delete-prefix
/usr/bin/env: node: No such file or directory
/usr/bin/env: node: No such file or directory

I'm pretty stuck here - I'm not sure where that error would be coming from.

Could you try set -x; nvm use node --delete-prefix, and share the output?

@ljharb Here is the - very very long - output

admin@ReadyNAS:~$ set -x; nvm use node --delete-prefix
+ nvm use node --delete-prefix
+ '[' 3 -lt 1 ']'
+ local GREP_OPTIONS
+ GREP_OPTIONS=
+ local VERSION
+ local ADDITIONAL_PARAMETERS
+ case $1 in
+ local PROVIDED_VERSION
+ local NVM_USE_SILENT
+ NVM_USE_SILENT=0
+ local NVM_DELETE_PREFIX
+ NVM_DELETE_PREFIX=0
+ shift
+ '[' 2 -ne 0 ']'
+ case "$1" in
+ '[' -n node ']'
+ PROVIDED_VERSION=node
+ shift
+ '[' 1 -ne 0 ']'
+ case "$1" in
+ NVM_DELETE_PREFIX=1
+ shift
+ '[' 0 -ne 0 ']'
+ '[' -z node ']'
++ nvm_match_version node
++ local NVM_IOJS_PREFIX
+++ nvm_iojs_prefix
+++ nvm_echo iojs
+++ command printf '%s\n' iojs
++ NVM_IOJS_PREFIX=iojs
++ local PROVIDED_VERSION
++ PROVIDED_VERSION=node
++ case "_$PROVIDED_VERSION" in
++ nvm_version node
++ local PATTERN
++ PATTERN=node
++ local VERSION
++ '[' -z node ']'
++ '[' node = current ']'
++ local NVM_NODE_PREFIX
+++ nvm_node_prefix
+++ nvm_echo node
+++ command printf '%s\n' node
++ NVM_NODE_PREFIX=node
++ case "_$PATTERN" in
++ PATTERN=stable
+++ nvm_ls stable
+++ command tail -n1
+++ tail -n1
+++ local PATTERN
+++ PATTERN=stable
+++ local VERSIONS
+++ VERSIONS=
+++ '[' stable = current ']'
+++ local NVM_IOJS_PREFIX
++++ nvm_iojs_prefix
++++ nvm_echo iojs
++++ command printf '%s\n' iojs
+++ NVM_IOJS_PREFIX=iojs
+++ local NVM_NODE_PREFIX
++++ nvm_node_prefix
++++ nvm_echo node
++++ command printf '%s\n' node
+++ NVM_NODE_PREFIX=node
+++ local NVM_VERSION_DIR_IOJS
++++ nvm_version_dir iojs
++++ local NVM_WHICH_DIR
++++ NVM_WHICH_DIR=iojs
++++ '[' -z iojs ']'
++++ '[' _iojs = _new ']'
++++ '[' _iojs = _iojs ']'
++++ nvm_echo /home/admin/.nvm/versions/io.js
++++ command printf '%s\n' /home/admin/.nvm/versions/io.js
+++ NVM_VERSION_DIR_IOJS=/home/admin/.nvm/versions/io.js
+++ local NVM_VERSION_DIR_NEW
++++ nvm_version_dir new
++++ local NVM_WHICH_DIR
++++ NVM_WHICH_DIR=new
++++ '[' -z new ']'
++++ '[' _new = _new ']'
++++ nvm_echo /home/admin/.nvm/versions/node
++++ command printf '%s\n' /home/admin/.nvm/versions/node
+++ NVM_VERSION_DIR_NEW=/home/admin/.nvm/versions/node
+++ local NVM_VERSION_DIR_OLD
++++ nvm_version_dir old
++++ local NVM_WHICH_DIR
++++ NVM_WHICH_DIR=old
++++ '[' -z old ']'
++++ '[' _old = _new ']'
++++ '[' _old = _iojs ']'
++++ '[' _old = _old ']'
++++ nvm_echo /home/admin/.nvm
++++ command printf '%s\n' /home/admin/.nvm
+++ NVM_VERSION_DIR_OLD=/home/admin/.nvm
+++ case "$PATTERN" in
+++ nvm_resolve_local_alias stable
+++ '[' -z stable ']'
+++ local VERSION
+++ local EXIT_CODE
++++ nvm_resolve_alias stable
++++ '[' -z stable ']'
++++ local PATTERN
++++ PATTERN=stable
++++ local ALIAS
++++ ALIAS=stable
++++ local ALIAS_TEMP
++++ local SEEN_ALIASES
++++ SEEN_ALIASES=stable
++++ true
+++++ nvm_alias stable
++++ ALIAS_TEMP=
++++ '[' -z '' ']'
++++ break
++++ '[' -n stable ']'
++++ '[' _stable '!=' _stable ']'
++++ nvm_validate_implicit_alias stable
++++ local IMPLICIT
+++++ nvm_print_implicit_alias local stable
++++ IMPLICIT=7.2
++++ '[' -n 7.2 ']'
++++ nvm_ensure_version_prefix 7.2
++++ local NVM_VERSION
+++++ command sed -e 's/^\([0-9]\)/v\1/g'
+++++ sed -e 's/^\([0-9]\)/v\1/g'
+++++ nvm_strip_iojs_prefix 7.2
+++++ local NVM_IOJS_PREFIX
++++++ nvm_iojs_prefix
++++++ nvm_echo iojs
++++++ command printf '%s\n' iojs
+++++ NVM_IOJS_PREFIX=iojs
+++++ '[' _7.2 = _iojs ']'
+++++ nvm_echo 7.2
+++++ command printf '%s\n' 7.2
++++ NVM_VERSION=v7.2
++++ nvm_is_iojs_version 7.2
++++ case "$1" in
++++ return 1
++++ nvm_echo v7.2
++++ command printf '%s\n' v7.2
++++ return 2
+++ VERSION=v7.2
+++ EXIT_CODE=2
+++ '[' -z v7.2 ']'
+++ '[' _v7.2 '!=' _โˆž ']'
+++ nvm_version v7.2
+++ local PATTERN
+++ PATTERN=v7.2
+++ local VERSION
+++ '[' -z v7.2 ']'
+++ '[' v7.2 = current ']'
+++ local NVM_NODE_PREFIX
++++ nvm_node_prefix
++++ nvm_echo node
++++ command printf '%s\n' node
+++ NVM_NODE_PREFIX=node
+++ case "_$PATTERN" in
++++ nvm_ls v7.2
++++ command tail -n1
++++ tail -n1
++++ local PATTERN
++++ PATTERN=v7.2
++++ local VERSIONS
++++ VERSIONS=
++++ '[' v7.2 = current ']'
++++ local NVM_IOJS_PREFIX
+++++ nvm_iojs_prefix
+++++ nvm_echo iojs
+++++ command printf '%s\n' iojs
++++ NVM_IOJS_PREFIX=iojs
++++ local NVM_NODE_PREFIX
+++++ nvm_node_prefix
+++++ nvm_echo node
+++++ command printf '%s\n' node
++++ NVM_NODE_PREFIX=node
++++ local NVM_VERSION_DIR_IOJS
+++++ nvm_version_dir iojs
+++++ local NVM_WHICH_DIR
+++++ NVM_WHICH_DIR=iojs
+++++ '[' -z iojs ']'
+++++ '[' _iojs = _new ']'
+++++ '[' _iojs = _iojs ']'
+++++ nvm_echo /home/admin/.nvm/versions/io.js
+++++ command printf '%s\n' /home/admin/.nvm/versions/io.js
++++ NVM_VERSION_DIR_IOJS=/home/admin/.nvm/versions/io.js
++++ local NVM_VERSION_DIR_NEW
+++++ nvm_version_dir new
+++++ local NVM_WHICH_DIR
+++++ NVM_WHICH_DIR=new
+++++ '[' -z new ']'
+++++ '[' _new = _new ']'
+++++ nvm_echo /home/admin/.nvm/versions/node
+++++ command printf '%s\n' /home/admin/.nvm/versions/node
++++ NVM_VERSION_DIR_NEW=/home/admin/.nvm/versions/node
++++ local NVM_VERSION_DIR_OLD
+++++ nvm_version_dir old
+++++ local NVM_WHICH_DIR
+++++ NVM_WHICH_DIR=old
+++++ '[' -z old ']'
+++++ '[' _old = _new ']'
+++++ '[' _old = _iojs ']'
+++++ '[' _old = _old ']'
+++++ nvm_echo /home/admin/.nvm
+++++ command printf '%s\n' /home/admin/.nvm
++++ NVM_VERSION_DIR_OLD=/home/admin/.nvm
++++ case "$PATTERN" in
++++ nvm_resolve_local_alias v7.2
++++ '[' -z v7.2 ']'
++++ local VERSION
++++ local EXIT_CODE
+++++ nvm_resolve_alias v7.2
+++++ '[' -z v7.2 ']'
+++++ local PATTERN
+++++ PATTERN=v7.2
+++++ local ALIAS
+++++ ALIAS=v7.2
+++++ local ALIAS_TEMP
+++++ local SEEN_ALIASES
+++++ SEEN_ALIASES=v7.2
+++++ true
++++++ nvm_alias v7.2
+++++ ALIAS_TEMP=
+++++ '[' -z '' ']'
+++++ break
+++++ '[' -n v7.2 ']'
+++++ '[' _v7.2 '!=' _v7.2 ']'
+++++ nvm_validate_implicit_alias v7.2
+++++ return 2
++++ VERSION=
++++ EXIT_CODE=2
++++ '[' -z '' ']'
++++ return 2
+++++ nvm_ensure_version_prefix v7.2
+++++ local NVM_VERSION
++++++ nvm_strip_iojs_prefix v7.2
++++++ command sed -e 's/^\([0-9]\)/v\1/g'
++++++ sed -e 's/^\([0-9]\)/v\1/g'
++++++ local NVM_IOJS_PREFIX
+++++++ nvm_iojs_prefix
+++++++ nvm_echo iojs
+++++++ command printf '%s\n' iojs
++++++ NVM_IOJS_PREFIX=iojs
++++++ '[' _v7.2 = _iojs ']'
++++++ nvm_echo v7.2
++++++ command printf '%s\n' v7.2
+++++ NVM_VERSION=v7.2
+++++ nvm_is_iojs_version v7.2
+++++ case "$1" in
+++++ return 1
+++++ nvm_echo v7.2
+++++ command printf '%s\n' v7.2
++++ PATTERN=v7.2
++++ '[' _v7.2 = _N/A ']'
++++ local NVM_PATTERN_STARTS_WITH_V
++++ case $PATTERN in
++++ NVM_PATTERN_STARTS_WITH_V=true
++++ '[' true = true ']'
+++++ nvm_num_version_groups v7.2
+++++ local VERSION
+++++ VERSION=v7.2
+++++ VERSION=7.2
+++++ VERSION=7.2
+++++ '[' -z 7.2 ']'
+++++ local NVM_NUM_DOTS
++++++ nvm_echo 7.2
++++++ command printf '%s\n' 7.2
++++++ command sed -e 's/[^\.]//g'
++++++ sed -e 's/[^\.]//g'
+++++ NVM_NUM_DOTS=.
+++++ local NVM_NUM_GROUPS
+++++ NVM_NUM_GROUPS=..
+++++ nvm_echo 2
+++++ command printf '%s\n' 2
++++ '[' _2 = _3 ']'
++++ case "$PATTERN" in
++++ local NUM_VERSION_GROUPS
+++++ nvm_num_version_groups v7.2
+++++ local VERSION
+++++ VERSION=v7.2
+++++ VERSION=7.2
+++++ VERSION=7.2
+++++ '[' -z 7.2 ']'
+++++ local NVM_NUM_DOTS
++++++ command sed -e 's/[^\.]//g'
++++++ nvm_echo 7.2
++++++ command printf '%s\n' 7.2
++++++ sed -e 's/[^\.]//g'
+++++ NVM_NUM_DOTS=.
+++++ local NVM_NUM_GROUPS
+++++ NVM_NUM_GROUPS=..
+++++ nvm_echo 2
+++++ command printf '%s\n' 2
++++ NUM_VERSION_GROUPS=2
++++ '[' _2 = _2 ']'
++++ PATTERN=v7.2.
++++ local ZHS_HAS_SHWORDSPLIT_UNSET
++++ ZHS_HAS_SHWORDSPLIT_UNSET=1
++++ nvm_has setopt
++++ type setopt
++++ local NVM_DIRS_TO_SEARCH1
++++ NVM_DIRS_TO_SEARCH1=
++++ local NVM_DIRS_TO_SEARCH2
++++ NVM_DIRS_TO_SEARCH2=
++++ local NVM_DIRS_TO_SEARCH3
++++ NVM_DIRS_TO_SEARCH3=
++++ local NVM_ADD_SYSTEM
++++ NVM_ADD_SYSTEM=false
++++ nvm_is_iojs_version v7.2.
++++ case "$1" in
++++ return 1
++++ '[' _v7.2. = _node- ']'
++++ NVM_DIRS_TO_SEARCH1=/home/admin/.nvm
++++ NVM_DIRS_TO_SEARCH2=/home/admin/.nvm/versions/node
++++ NVM_DIRS_TO_SEARCH3=/home/admin/.nvm/versions/io.js
++++ nvm_has_system_iojs
+++++ nvm deactivate
+++++ command -v iojs
++++ '[' '' '!=' '' ']'
++++ nvm_has_system_node
+++++ nvm deactivate
+++++ command -v node
++++ '[' '' '!=' '' ']'
++++ '[' -d /home/admin/.nvm ']'
++++ '[' -d /home/admin/.nvm/versions/node ']'
++++ '[' -d /home/admin/.nvm/versions/io.js ']'
++++ NVM_DIRS_TO_SEARCH3=/home/admin/.nvm/versions/node
++++ '[' -z v7.2. ']'
++++ '[' -n /home/admin/.nvm/home/admin/.nvm/versions/node/home/admin/.nvm/versions/node ']'
+++++ command sed '
            s#/home/admin/.nvm/versions/io.js/#iojs-#;
            \#/home/admin/.nvm/versions/io.js# d;
            s#^/home/admin/.nvm/##;
            \#^versions$# d;
            s#^versions/##;
            s#^v#node-v#;
            s#^\(iojs\)[-/]v#\1.v#;
            s#^\(node\)[-/]v#\1.v#'
+++++ sed '
            s#/home/admin/.nvm/versions/io.js/#iojs-#;
            \#/home/admin/.nvm/versions/io.js# d;
            s#^/home/admin/.nvm/##;
            \#^versions$# d;
            s#^versions/##;
            s#^v#node-v#;
            s#^\(iojs\)[-/]v#\1.v#;
+++++ command sort -t. -u -k 2.2,2n -k 3,3n -k 4,4n
+++++ command find /home/admin/.nvm /home/admin/.nvm/versions/node /home/admin/.nvm/versions/node -maxdepth 1 -type d -name 'v7.2.*'
+++++ find /home/admin/.nvm /home/admin/.nvm/versions/node /home/admin/.nvm/versions/node -maxdepth 1 -type d -name 'v7.2.*'
+++++ sort -t. -u -k 2.2,2n -k 3,3n -k 4,4n
+++++ command sed '
            s/^\(iojs\)\./\1-/;
            s#^\(node\)[-/]v#\1.v#'
            s/^node\.//'
+++++ sed '
            s/^\(iojs\)\./\1-/;
            s/^node\.//'
++++ VERSIONS=v7.2.1
++++ '[' 1 -eq 1 ']'
++++ nvm_has unsetopt
++++ type unsetopt
++++ '[' false = true ']'
++++ '[' -z v7.2.1 ']'
++++ nvm_echo v7.2.1
++++ command printf '%s\n' v7.2.1
+++ VERSION=v7.2.1
+++ '[' -z v7.2.1 ']'
+++ '[' _v7.2.1 = _N/A ']'
+++ nvm_echo v7.2.1
+++ command printf '%s\n' v7.2.1
+++ return
++ VERSION=v7.2.1
++ '[' -z v7.2.1 ']'
++ '[' _v7.2.1 = _N/A ']'
++ nvm_echo v7.2.1
++ command printf '%s\n' v7.2.1
+ VERSION=v7.2.1
+ '[' -z v7.2.1 ']'
+ '[' _v7.2.1 = _system ']'
+ '[' _v7.2.1 = _โˆž ']'
+ nvm_ensure_version_installed node
+ local PROVIDED_VERSION
+ PROVIDED_VERSION=node
+ local LOCAL_VERSION
+ local EXIT_CODE
++ nvm_version node
++ local PATTERN
++ PATTERN=node
++ local VERSION
++ '[' -z node ']'
++ '[' node = current ']'
++ local NVM_NODE_PREFIX
+++ nvm_node_prefix
+++ nvm_echo node
+++ command printf '%s\n' node
++ NVM_NODE_PREFIX=node
++ case "_$PATTERN" in
++ PATTERN=stable
+++ nvm_ls stable
+++ command tail -n1
+++ tail -n1
+++ local PATTERN
+++ PATTERN=stable
+++ local VERSIONS
+++ VERSIONS=
+++ '[' stable = current ']'
+++ local NVM_IOJS_PREFIX
++++ nvm_iojs_prefix
++++ nvm_echo iojs
++++ command printf '%s\n' iojs
+++ NVM_IOJS_PREFIX=iojs
+++ local NVM_NODE_PREFIX
++++ nvm_node_prefix
++++ nvm_echo node
++++ command printf '%s\n' node
+++ NVM_NODE_PREFIX=node
+++ local NVM_VERSION_DIR_IOJS
++++ nvm_version_dir iojs
++++ local NVM_WHICH_DIR
++++ NVM_WHICH_DIR=iojs
++++ '[' -z iojs ']'
++++ '[' _iojs = _new ']'
++++ '[' _iojs = _iojs ']'
++++ nvm_echo /home/admin/.nvm/versions/io.js
++++ command printf '%s\n' /home/admin/.nvm/versions/io.js
+++ NVM_VERSION_DIR_IOJS=/home/admin/.nvm/versions/io.js
+++ local NVM_VERSION_DIR_NEW
++++ nvm_version_dir new
++++ local NVM_WHICH_DIR
++++ NVM_WHICH_DIR=new
++++ '[' -z new ']'
++++ '[' _new = _new ']'
++++ nvm_echo /home/admin/.nvm/versions/node
++++ command printf '%s\n' /home/admin/.nvm/versions/node
+++ NVM_VERSION_DIR_NEW=/home/admin/.nvm/versions/node
+++ local NVM_VERSION_DIR_OLD
++++ nvm_version_dir old
++++ local NVM_WHICH_DIR
++++ NVM_WHICH_DIR=old
++++ '[' -z old ']'
++++ '[' _old = _new ']'
++++ '[' _old = _iojs ']'
++++ '[' _old = _old ']'
++++ nvm_echo /home/admin/.nvm
++++ command printf '%s\n' /home/admin/.nvm
+++ NVM_VERSION_DIR_OLD=/home/admin/.nvm
+++ case "$PATTERN" in
+++ nvm_resolve_local_alias stable
+++ '[' -z stable ']'
+++ local VERSION
+++ local EXIT_CODE
++++ nvm_resolve_alias stable
++++ '[' -z stable ']'
++++ local PATTERN
++++ PATTERN=stable
++++ local ALIAS
++++ ALIAS=stable
++++ local ALIAS_TEMP
++++ local SEEN_ALIASES
++++ SEEN_ALIASES=stable
++++ true
+++++ nvm_alias stable
++++ ALIAS_TEMP=
++++ '[' -z '' ']'
++++ break
++++ '[' -n stable ']'
++++ '[' _stable '!=' _stable ']'
++++ nvm_validate_implicit_alias stable
++++ local IMPLICIT
+++++ nvm_print_implicit_alias local stable
++++ IMPLICIT=7.2
++++ '[' -n 7.2 ']'
++++ nvm_ensure_version_prefix 7.2
++++ local NVM_VERSION
+++++ command sed -e 's/^\([0-9]\)/v\1/g'
+++++ sed -e 's/^\([0-9]\)/v\1/g'
+++++ nvm_strip_iojs_prefix 7.2
+++++ local NVM_IOJS_PREFIX
++++++ nvm_iojs_prefix
++++++ nvm_echo iojs
++++++ command printf '%s\n' iojs
+++++ NVM_IOJS_PREFIX=iojs
+++++ '[' _7.2 = _iojs ']'
+++++ nvm_echo 7.2
+++++ command printf '%s\n' 7.2
++++ NVM_VERSION=v7.2
++++ nvm_is_iojs_version 7.2
++++ case "$1" in
++++ return 1
++++ nvm_echo v7.2
++++ command printf '%s\n' v7.2
++++ return 2
+++ VERSION=v7.2
+++ EXIT_CODE=2
+++ '[' -z v7.2 ']'
+++ '[' _v7.2 '!=' _โˆž ']'
+++ nvm_version v7.2
+++ local PATTERN
+++ PATTERN=v7.2
+++ local VERSION
+++ '[' -z v7.2 ']'
+++ '[' v7.2 = current ']'
+++ local NVM_NODE_PREFIX
++++ nvm_node_prefix
++++ nvm_echo node
++++ command printf '%s\n' node
+++ NVM_NODE_PREFIX=node
+++ case "_$PATTERN" in
++++ nvm_ls v7.2
++++ local PATTERN
++++ command tail -n1
++++ tail -n1
++++ PATTERN=v7.2
++++ local VERSIONS
++++ VERSIONS=
++++ '[' v7.2 = current ']'
++++ local NVM_IOJS_PREFIX
+++++ nvm_iojs_prefix
+++++ nvm_echo iojs
+++++ command printf '%s\n' iojs
++++ NVM_IOJS_PREFIX=iojs
++++ local NVM_NODE_PREFIX
+++++ nvm_node_prefix
+++++ nvm_echo node
+++++ command printf '%s\n' node
++++ NVM_NODE_PREFIX=node
++++ local NVM_VERSION_DIR_IOJS
+++++ nvm_version_dir iojs
+++++ local NVM_WHICH_DIR
+++++ NVM_WHICH_DIR=iojs
+++++ '[' -z iojs ']'
+++++ '[' _iojs = _new ']'
+++++ '[' _iojs = _iojs ']'
+++++ nvm_echo /home/admin/.nvm/versions/io.js
+++++ command printf '%s\n' /home/admin/.nvm/versions/io.js
++++ NVM_VERSION_DIR_IOJS=/home/admin/.nvm/versions/io.js
++++ local NVM_VERSION_DIR_NEW
+++++ nvm_version_dir new
+++++ local NVM_WHICH_DIR
+++++ NVM_WHICH_DIR=new
+++++ '[' -z new ']'
+++++ '[' _new = _new ']'
+++++ nvm_echo /home/admin/.nvm/versions/node
+++++ command printf '%s\n' /home/admin/.nvm/versions/node
++++ NVM_VERSION_DIR_NEW=/home/admin/.nvm/versions/node
++++ local NVM_VERSION_DIR_OLD
+++++ nvm_version_dir old
+++++ local NVM_WHICH_DIR
+++++ NVM_WHICH_DIR=old
+++++ '[' -z old ']'
+++++ '[' _old = _new ']'
+++++ '[' _old = _iojs ']'
+++++ '[' _old = _old ']'
+++++ nvm_echo /home/admin/.nvm
+++++ command printf '%s\n' /home/admin/.nvm
++++ NVM_VERSION_DIR_OLD=/home/admin/.nvm
++++ case "$PATTERN" in
++++ nvm_resolve_local_alias v7.2
++++ '[' -z v7.2 ']'
++++ local VERSION
++++ local EXIT_CODE
+++++ nvm_resolve_alias v7.2
+++++ '[' -z v7.2 ']'
+++++ local PATTERN
+++++ PATTERN=v7.2
+++++ local ALIAS
+++++ ALIAS=v7.2
+++++ local ALIAS_TEMP
+++++ local SEEN_ALIASES
+++++ SEEN_ALIASES=v7.2
+++++ true
++++++ nvm_alias v7.2
+++++ ALIAS_TEMP=
+++++ '[' -z '' ']'
+++++ break
+++++ '[' -n v7.2 ']'
+++++ '[' _v7.2 '!=' _v7.2 ']'
+++++ nvm_validate_implicit_alias v7.2
+++++ return 2
++++ VERSION=
++++ EXIT_CODE=2
++++ '[' -z '' ']'
++++ return 2
+++++ nvm_ensure_version_prefix v7.2
+++++ local NVM_VERSION
++++++ nvm_strip_iojs_prefix v7.2
++++++ local NVM_IOJS_PREFIX
++++++ command sed -e 's/^\([0-9]\)/v\1/g'
++++++ sed -e 's/^\([0-9]\)/v\1/g'
+++++++ nvm_iojs_prefix
+++++++ nvm_echo iojs
+++++++ command printf '%s\n' iojs
++++++ NVM_IOJS_PREFIX=iojs
++++++ '[' _v7.2 = _iojs ']'
++++++ nvm_echo v7.2
++++++ command printf '%s\n' v7.2
+++++ NVM_VERSION=v7.2
+++++ nvm_is_iojs_version v7.2
+++++ case "$1" in
+++++ return 1
+++++ nvm_echo v7.2
+++++ command printf '%s\n' v7.2
++++ PATTERN=v7.2
++++ '[' _v7.2 = _N/A ']'
++++ local NVM_PATTERN_STARTS_WITH_V
++++ case $PATTERN in
++++ NVM_PATTERN_STARTS_WITH_V=true
++++ '[' true = true ']'
+++++ nvm_num_version_groups v7.2
+++++ local VERSION
+++++ VERSION=v7.2
+++++ VERSION=7.2
+++++ VERSION=7.2
+++++ '[' -z 7.2 ']'
+++++ local NVM_NUM_DOTS
++++++ nvm_echo 7.2
++++++ command printf '%s\n' 7.2
++++++ command sed -e 's/[^\.]//g'
++++++ sed -e 's/[^\.]//g'
+++++ NVM_NUM_DOTS=.
+++++ local NVM_NUM_GROUPS
+++++ NVM_NUM_GROUPS=..
+++++ nvm_echo 2
+++++ command printf '%s\n' 2
++++ '[' _2 = _3 ']'
++++ case "$PATTERN" in
++++ local NUM_VERSION_GROUPS
+++++ nvm_num_version_groups v7.2
+++++ local VERSION
+++++ VERSION=v7.2
+++++ VERSION=7.2
+++++ VERSION=7.2
+++++ '[' -z 7.2 ']'
+++++ local NVM_NUM_DOTS
++++++ nvm_echo 7.2
++++++ command printf '%s\n' 7.2
++++++ command sed -e 's/[^\.]//g'
++++++ sed -e 's/[^\.]//g'
+++++ NVM_NUM_DOTS=.
+++++ local NVM_NUM_GROUPS
+++++ NVM_NUM_GROUPS=..
+++++ nvm_echo 2
+++++ command printf '%s\n' 2
++++ NUM_VERSION_GROUPS=2
++++ '[' _2 = _2 ']'
++++ PATTERN=v7.2.
++++ local ZHS_HAS_SHWORDSPLIT_UNSET
++++ ZHS_HAS_SHWORDSPLIT_UNSET=1
++++ nvm_has setopt
++++ type setopt
++++ local NVM_DIRS_TO_SEARCH1
++++ NVM_DIRS_TO_SEARCH1=
++++ local NVM_DIRS_TO_SEARCH2
++++ NVM_DIRS_TO_SEARCH2=
++++ local NVM_DIRS_TO_SEARCH3
++++ NVM_DIRS_TO_SEARCH3=
++++ local NVM_ADD_SYSTEM
++++ NVM_ADD_SYSTEM=false
++++ nvm_is_iojs_version v7.2.
++++ case "$1" in
++++ return 1
++++ '[' _v7.2. = _node- ']'
++++ NVM_DIRS_TO_SEARCH1=/home/admin/.nvm
++++ NVM_DIRS_TO_SEARCH2=/home/admin/.nvm/versions/node
++++ NVM_DIRS_TO_SEARCH3=/home/admin/.nvm/versions/io.js
++++ nvm_has_system_iojs
+++++ nvm deactivate
+++++ command -v iojs
++++ '[' '' '!=' '' ']'
++++ nvm_has_system_node
+++++ nvm deactivate
+++++ command -v node
++++ '[' '' '!=' '' ']'
++++ '[' -d /home/admin/.nvm ']'
++++ '[' -d /home/admin/.nvm/versions/node ']'
++++ '[' -d /home/admin/.nvm/versions/io.js ']'
++++ NVM_DIRS_TO_SEARCH3=/home/admin/.nvm/versions/node
++++ '[' -z v7.2. ']'
++++ '[' -n /home/admin/.nvm/home/admin/.nvm/versions/node/home/admin/.nvm/versions/node ']'
+++++ command sed '
            s#/home/admin/.nvm/versions/io.js/#iojs-#;
            \#/home/admin/.nvm/versions/io.js# d;
            s#^/home/admin/.nvm/##;
            \#^versions$# d;
            s#^versions/##;
            s#^v#node-v#;
            s#^\(iojs\)[-/]v#\1.v#;
            s#^\(node\)[-/]v#\1.v#'
+++++ sed '
            s#/home/admin/.nvm/versions/io.js/#iojs-#;
            \#/home/admin/.nvm/versions/io.js# d;
            s#^/home/admin/.nvm/##;
            \#^versions$# d;
            s#^versions/##;
            s#^v#node-v#;
            s#^\(iojs\)[-/]v#\1.v#;
+++++ command sed '
            s/^\(iojs\)\./\1-/;
+++++ command find /home/admin/.nvm /home/admin/.nvm/versions/node /home/admin/.nvm/versions/node -maxdepth 1 -type d -name 'v7.2.*'
+++++ find /home/admin/.nvm /home/admin/.nvm/versions/node /home/admin/.nvm/versions/node -maxdepth 1 -type d -name 'v7.2.*'
            s/^node\.//'
+++++ command sort -t. -u -k 2.2,2n -k 3,3n -k 4,4n
+++++ sort -t. -u -k 2.2,2n -k 3,3n -k 4,4n
+++++ sed '
            s/^\(iojs\)\./\1-/;
            s#^\(node\)[-/]v#\1.v#'
            s/^node\.//'
++++ VERSIONS=v7.2.1
++++ '[' 1 -eq 1 ']'
++++ nvm_has unsetopt
++++ type unsetopt
++++ '[' false = true ']'
++++ '[' -z v7.2.1 ']'
++++ nvm_echo v7.2.1
++++ command printf '%s\n' v7.2.1
+++ VERSION=v7.2.1
+++ '[' -z v7.2.1 ']'
+++ '[' _v7.2.1 = _N/A ']'
+++ nvm_echo v7.2.1
+++ command printf '%s\n' v7.2.1
+++ return
++ VERSION=v7.2.1
++ '[' -z v7.2.1 ']'
++ '[' _v7.2.1 = _N/A ']'
++ nvm_echo v7.2.1
++ command printf '%s\n' v7.2.1
+ LOCAL_VERSION=v7.2.1
+ EXIT_CODE=0
+ local NVM_VERSION_DIR
+ '[' _0 '!=' _0 ']'
+ nvm_is_version_installed v7.2.1
+ '[' -n v7.2.1 ']'
++ nvm_version_path v7.2.1
+ '[' -d /home/admin/.nvm/versions/node/v7.2.1 ']'
+ EXIT_CODE=0
+ '[' 0 '!=' 0 ']'
+ local NVM_VERSION_DIR
++ nvm_version_path v7.2.1
++ local VERSION
++ VERSION=v7.2.1
++ '[' -z v7.2.1 ']'
++ nvm_is_iojs_version v7.2.1
++ case "$1" in
++ return 1
++ nvm_version_greater 0.12.0 v7.2.1
++ command awk 'BEGIN {
    if (ARGV[1] == "" || ARGV[2] == "") exit(1)
    split(ARGV[1], a, /\./);
    split(ARGV[2], b, /\./);
    for (i=1; i<=3; i++) {
      if (a[i] && a[i] !~ /^[0-9]+$/) exit(2);
      if (b[i] && b[i] !~ /^[0-9]+$/) { exit(0); }
      if (a[i] < b[i]) exit(3);
      else if (a[i] > b[i]) exit(0);
    }
    exit(4)
  }' 0.12.0 7.2.1
++ awk 'BEGIN {
    if (ARGV[1] == "" || ARGV[2] == "") exit(1)
    split(ARGV[1], a, /\./);
    split(ARGV[2], b, /\./);
    for (i=1; i<=3; i++) {
      if (a[i] && a[i] !~ /^[0-9]+$/) exit(2);
      if (b[i] && b[i] !~ /^[0-9]+$/) { exit(0); }
      if (a[i] < b[i]) exit(3);
      else if (a[i] > b[i]) exit(0);
    }
    exit(4)
  }' 0.12.0 7.2.1
+++ nvm_version_dir new
+++ local NVM_WHICH_DIR
+++ NVM_WHICH_DIR=new
+++ '[' -z new ']'
+++ '[' _new = _new ']'
+++ nvm_echo /home/admin/.nvm/versions/node
+++ command printf '%s\n' /home/admin/.nvm/versions/node
++ nvm_echo /home/admin/.nvm/versions/node/v7.2.1
++ command printf '%s\n' /home/admin/.nvm/versions/node/v7.2.1
+ NVM_VERSION_DIR=/home/admin/.nvm/versions/node/v7.2.1
++ nvm_strip_path /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games /bin
++ '[' -z /home/admin/.nvm ']'
++ command sed -e 's#/home/admin/.nvm/[^/]*/bin[^:]*:##g' -e 's#:/home/admin/.nvm/[^/]*/bin[^:]*##g' -e 's#/home/admin/.nvm/[^/]*/bin[^:]*##g' -e 's#/home/admin/.nvm/versions/[^/]*/[^/]*/bin[^:]*:##g' -e 's#:/home/admin/.nvm/versions/[^/]*/[^/]*/bin[^:]*##g' -e 's#/home/admin/.nvm/versions/[^/]*/[^/]*/bin[^:]*##g'
++ nvm_echo /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
++ command printf '%s\n' /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
++ sed -e 's#/home/admin/.nvm/[^/]*/bin[^:]*:##g' -e 's#:/home/admin/.nvm/[^/]*/bin[^:]*##g' -e 's#/home/admin/.nvm/[^/]*/bin[^:]*##g' -e 's#/home/admin/.nvm/versions/[^/]*/[^/]*/bin[^:]*:##g' -e 's#:/home/admin/.nvm/versions/[^/]*/[^/]*/bin[^:]*##g' -e 's#/home/admin/.nvm/versions/[^/]*/[^/]*/bin[^:]*##g'
+ PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
++ nvm_prepend_path /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games /home/admin/.nvm/versions/node/v7.2.1/bin
++ '[' -z /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games ']'
++ nvm_echo /home/admin/.nvm/versions/node/v7.2.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
++ command printf '%s\n' /home/admin/.nvm/versions/node/v7.2.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
+ PATH=/home/admin/.nvm/versions/node/v7.2.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
+ nvm_has manpath
+ type manpath
+ export PATH
+ hash -r
+ export NVM_PATH=/home/admin/.nvm/versions/node/v7.2.1/lib/node
+ NVM_PATH=/home/admin/.nvm/versions/node/v7.2.1/lib/node
+ export NVM_BIN=/home/admin/.nvm/versions/node/v7.2.1/bin
+ NVM_BIN=/home/admin/.nvm/versions/node/v7.2.1/bin
+ '[' '' = true ']'
+ local NVM_USE_OUTPUT
+ '[' 0 -ne 1 ']'
+ nvm_is_iojs_version v7.2.1
+ case "$1" in
+ return 1
++ nvm_print_npm_version
++ nvm_has npm
++ type npm
+++ npm --version
++ command printf ' (npm v)'
++ printf ' (npm v)'
+ NVM_USE_OUTPUT='Now using node v7.2.1 (npm v)'
+ '[' _v7.2.1 '!=' _system ']'
+ local NVM_USE_CMD
+ NVM_USE_CMD='nvm use --delete-prefix'
+ '[' -n node ']'
+ NVM_USE_CMD='nvm use --delete-prefix v7.2.1'
+ '[' 0 -eq 1 ']'
+ nvm_die_on_prefix 1 'nvm use --delete-prefix v7.2.1'
+ local NVM_DELETE_PREFIX
+ NVM_DELETE_PREFIX=1
+ case "$NVM_DELETE_PREFIX" in
+ local NVM_COMMAND
+ NVM_COMMAND='nvm use --delete-prefix v7.2.1'
+ '[' -z 'nvm use --delete-prefix v7.2.1' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ nvm_has npm
+ type npm
+ local NVM_NPM_PREFIX
++ NPM_CONFIG_LOGLEVEL=warn
++ npm config get prefix
/usr/bin/env: node: No such file or directory
+ NVM_NPM_PREFIX=
+ nvm_tree_contains_path /home/admin/.nvm ''
+ '[' _1 = _1 ']'
+ NPM_CONFIG_LOGLEVEL=warn
+ npm config delete prefix
/usr/bin/env: node: No such file or directory
+ return 11

OK, so the implication here is that even though npm is available, either node is not, or, your copy of npm is broken. If you try nvm uninstall node and nvm reinstall node, does it work?

If not, do you have anything at all in your ~/.bashrc or ~/.bash_profile that references the PATH?

@ljharb I have this result

admin@ReadyNAS:~$ nvm uninstall node
Uninstalled node v7.2.1
admin@ReadyNAS:~$ nvm install node
Downloading https://nodejs.org/dist/v7.2.1/node-v7.2.1-linux-armv7l.tar.xz...
######################################################################## 100.0%
/usr/bin/env: node: No such file or directory
nvm is not compatible with the npm config "prefix" option: currently set to ""
Run `nvm use --delete-prefix v7.2.1` to unset it.

Here the content of my .bashrcfile

admin@ReadyNAS:~$ cat .bashrc 
export NVM_DIR="/home/admin/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"  # This loads nvm

The only thing I can think of is that /usr/bin/env doesn't work in a typical POSIX-compliant way on your NAS. After nvm use --delete-prefix node, what does nvm debug and echo $PATH print out?

@ljharb Here are the results

admin@ReadyNAS:~$ source .bashrc 
admin@ReadyNAS:~$ nvm use --delete-prefix node
/usr/bin/env: node: No such file or directory
/usr/bin/env: node: No such file or directory
admin@ReadyNAS:~$ nvm debug
nvm --version: v0.31.1
$SHELL: /bin/bash
$HOME: /home/admin
$NVM_DIR: '$HOME/.nvm'
$PREFIX: ''
$NPM_CONFIG_PREFIX: ''
nvm current: 
which node: $NVM_DIR/versions/node/v7.2.1/bin/node
which iojs: 
which npm: $NVM_DIR/versions/node/v7.2.1/bin/npm
npm config get prefix: /usr/bin/env: node: No such file or directory
npm root -g: /usr/bin/env: node: No such file or directory
admin@ReadyNAS:~$ echo $PATH
/home/admin/.nvm/versions/node/v7.2.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

I'm mystified. Everything seems to work properly except npm itself. I assume you have no ~/.npmrc file?

@ljharb I'm desperate ...
No, have no .npmrcfile in my admin /home ...
FYI, I have also asked the Netgear Ready NAS forum about this problem and it seems to be related with a problem that is coming from the (missing ?) BLX instruction of the ARM architecture :https://community.netgear.com/t5/Community-Add-ons/How-to-install-Node-js-on-ReadyNAS/m-p/1190851#M5427
Are you agree with this analysis ?

Yes, that seems to be the problem indeed. this implies you unfortunately can't use node on that device.

@ljharb do you know if there is a mean know if the ARM architecture plan to be supported in the future or if it is definitively "KO"

nose definitely supports some ARM devices, but it seems like your device doesn't have an instruction set it needs. I wouldn't be too hopeful.

`admin@hp2000:~$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.1/install.sh | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 7766 100 7766 0 0 10424 0 --:--:-- --:--:-- --:--:-- 10424
=> nvm is already installed in /home/youness/.nvm, trying to update using git
=> error: pathspec 'v0.31.1' did not match any file(s) known to git

=> Source string already in /home/youness/.bashrc
npm ERR! peer dep missing: request@^2.34, required by [email protected]
npm ERR! peer dep missing: request@^2.34, required by [email protected]
=> You currently have modules installed globally with npm. These will no
=> longer be linked to the active version of Node when you install a new node
=> with nvm; and they may (depending on how you construct your $PATH)
=> override the binaries of modules installed with nvm:

/usr/local/lib
โ”œโ”€โ”€ [email protected]
โ”œโ”€โ”€ [email protected]
โ”œโ”€โ”€ [email protected]
โ”œโ”€โ”€ [email protected]
โ”œโ”€โ”€ pixi.[email protected]
โ”œโ”€โ”€ [email protected]
โ”œโ”€โ”€ reveal.[email protected]
โ”œโ”€โ”€ [email protected]
โ”œโ”€โ”€ [email protected]
โ”œโ”€โ”€ [email protected]
โ””โ”€โ”€ video.[email protected]

=> If you wish to uninstall them at a later point (or re-install them under your
=> nvm Nodes), you can remove them from the system Node as follows:

 $ nvm use system
 $ npm uninstall -g a_module

=> Close and reopen your terminal to start using nvm`

Was this page helpful?
0 / 5 - 0 ratings