Skip to content
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

Home Assistant No such file or directory #3228

Closed
kyle1258 opened this issue Nov 4, 2023 · 8 comments
Closed

Home Assistant No such file or directory #3228

kyle1258 opened this issue Nov 4, 2023 · 8 comments

Comments

@kyle1258
Copy link

kyle1258 commented Nov 4, 2023

Operating system and version: Home Assistant 11.1

nvm debug output:

image

nvm ls output:

How did you install nvm?

wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash

What steps did you perform?

Restarted shell, installed latest Node, restarted shell. Attempted to run "npm install lit"

What happened?

env: can't execute 'node': No such file or directory

What did you expect to happen?

to install 'lit' repo

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

If you are having installation issues, or getting "N/A", what does curl -I --compressed -v https://nodejs.org/dist/ print out?

Node refuses execute following 'no such file or directory'. It seems to install normally. Sorry if this is a repeat issue or I'm not providing much info. This project has me engaging with Github and CLI commands much more than I'm used to.
@kyle1258
Copy link
Author

kyle1258 commented Nov 4, 2023

nvm ls output:

image

image

And so on...

I can post the rest if needed but there's a ton of output.

@ljharb
Copy link
Member

ljharb commented Nov 4, 2023

Seems like BusyBox doesn't have a POSIX-compliant ls.

This may be a duplicate of #2059, which suggests that apk add coreutils will solve it. Can you try that?

@kyle1258
Copy link
Author

kyle1258 commented Nov 4, 2023

Thanks so much for the reply, @ljharb

I restored my system to an older backup, ran your suggested command, and worked the installation from the beginning. Same error, unfortunately.

@ljharb
Copy link
Member

ljharb commented Nov 4, 2023

ls -q needs to work, since it's a POSIX option, and I assume it still doesn't?

@ljharb
Copy link
Member

ljharb commented Nov 4, 2023

Following the suggestions on https://wiki.alpinelinux.org/wiki/How_to_get_regular_stuff_working may also help.

@kyle1258
Copy link
Author

kyle1258 commented Nov 4, 2023

I ran all the commands in that Wiki just now and then the following. Hopefully I'm understanding correctly.

image

@ljharb
Copy link
Member

ljharb commented Nov 4, 2023

what does which npm and which node say?

also note that you have to compile on alpine; node doesn’t have any official binaries for it.

@kyle1258
Copy link
Author

kyle1258 commented Nov 4, 2023

Going through apline worked! Thanks very much for your help. Now time to stumble through other processes for this project lol.

@kyle1258 kyle1258 closed this as completed Nov 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants