Skip to content

/usr/bin/env: ‘node’: No such file or directory on Raspbian 64-bit #2233

Open

Description

Operating system and version:

Operating System: Raspbian GNU/Linux 10 (buster)
Kernel: Linux 4.19.118-v8+
Architecture: arm64

nvm debug output:

$SHELL: /bin/bash
$SHLVL: 1
${HOME}: /home/niels
${NVM_DIR}: '${HOME}/.nvm'
${PATH}: ${NVM_DIR}/versions/node/v12.18.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
$PREFIX: ''
${NPM_CONFIG_PREFIX}: ''
$NVM_NODEJS_ORG_MIRROR: ''
$NVM_IOJS_ORG_MIRROR: ''
shell version: 'GNU bash, version 5.0.3(1)-release (arm-unknown-linux-gnueabihf)'
uname -a: 'Linux 4.19.118-v8+ #1311 SMP PREEMPT Mon Apr 27 14:32:38 BST 2020 aarch64 GNU/Linux'
OS version: Raspbian GNU/Linux 10
curl: /usr/bin/curl, curl 7.64.0 (arm-unknown-linux-gnueabihf) libcurl/7.64.0 OpenSSL/1.1.1d zlib/1.2.11 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.5) libssh2/1.8.0 nghttp2/1.36.0 librtmp/2.3
wget: /usr/bin/wget, GNU Wget 1.20.1 built on linux-gnueabihf.
git: not found
grep: /bin/grep (grep --color=auto), grep (GNU grep) 3.3
awk: /usr/bin/awk, awk: not an option: --version
sed: /bin/sed, sed (GNU sed) 4.7
cut: /usr/bin/cut, cut (GNU coreutils) 8.30
basename: /usr/bin/basename, basename (GNU coreutils) 8.30
rm: /bin/rm, rm (GNU coreutils) 8.30
mkdir: /bin/mkdir, mkdir (GNU coreutils) 8.30
xargs: /usr/bin/xargs, xargs (GNU findutils) 4.6.0.225-235f
nvm current:
which node: ${NVM_DIR}/versions/node/v12.18.0/bin/node
which iojs:
which npm: ${NVM_DIR}/versions/node/v12.18.0/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

nvm ls output:

       v12.18.0
default -> node (-> v12.18.0)
node -> stable (-> v12.18.0) (default)
stable -> 12.18 (-> v12.18.0) (default)
iojs -> N/A (default)
unstable -> N/A (default)
lts/* -> lts/erbium (-> v12.18.0)
lts/argon -> v4.9.1 (-> N/A)
lts/boron -> v6.17.1 (-> N/A)
lts/carbon -> v8.17.0 (-> N/A)
lts/dubnium -> v10.21.0 (-> N/A)
lts/erbium -> v12.18.0

How did you install nvm?

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash

What steps did you perform?

Clean install of Raspbian Lite with arm_64bit=1 added to config.txt (info).
When disabling arm_64bit there are no errors btw.

What happened?

Error after installing --lts or any other version with nvm install --lts.

/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 v12.18.0` to unset it.

What did you expect to happen?

No error and node and npm command available in shell. After running nvm use --delete-prefix v12.18.0 and using node command:

-bash: /home/niels/.nvm/versions/node/v12.18.0/bin/node: No such file or directory

Is there anything in any of your profile files that modifies the PATH?

No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    OS: Raspberry Piinstalling nodeIssues with installing node/io.js versions.Issues with installing node/io.js versions.needs followupWe need some info or action from whoever filed this issue/PR.We need some info or action from whoever filed this issue/PR.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions