-
-
Notifications
You must be signed in to change notification settings - Fork 8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/usr/bin/env: ‘node’: No such file or directory on Raspbian 64-bit #2233
Comments
is does When you install node with arm_64bit enabled, does it download a binary or does it compile the source? |
Do you know enough with this snippet? $ $HOME
-bash: /home/niels: Is a directory
~/.nvm/versions/node/v12.18.0/bin $ ls -l
total 46040
-rwxr-xr-x 1 niels niels 47141688 Jun 2 16:36 node
lrwxrwxrwx 1 niels niels 38 Jun 2 16:36 npm -> ../lib/node_modules/npm/bin/npm-cli.js
lrwxrwxrwx 1 niels niels 38 Jun 2 16:36 npx -> ../lib/node_modules/npm/bin/npx-cli.js It looks like it downloads the binary: $ nvm install --lts
Installing latest LTS version.
Downloading and installing node v12.18.0...
Downloading https://nodejs.org/dist/v12.18.0/node-v12.18.0-linux-arm64.tar.xz...
########################################################################################### 100.0%
Computing checksum with sha256sum
Checksums matched!
/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. |
I'm very confused. With that arm bit enabled, if you download the source directly from node's website and compile it, does it work? I'm wondering if node just doesn't function on that setup, unrelated to nvm. |
Edit: Sorry for misinformation, I'm apparently running on 64-bit. Can reproduce on Raspbian I also tried following these steps to install nvm. Gives the same error. node seems to work fine when installed through package manager.
[11:04] [pi@raspberrypi] ~ $ file $HOME
/home/pi: directory
[11:04] [pi@raspberrypi] ~ $ file /home
/home: directory |
I get this exact error on Debian |
@ArGJolan node is not distributed through any package manager; what happens if you manually download and compile it off of node’s website? @tonyneel923 can you file a new issue and fill out the issue template? |
|
I had the exact same issue, but on 32bit Raspberry Pi OS. Turns out it was use to using the 64-bit kernel. PR #2469 should fix it. |
Operating system and version:
Operating System: Raspbian GNU/Linux 10 (buster)
Kernel: Linux 4.19.118-v8+
Architecture: arm64
nvm debug
output:nvm ls
output: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.
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:
Is there anything in any of your profile files that modifies the
PATH
?No
The text was updated successfully, but these errors were encountered: