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

server fails to start if node.js is not at /usr/bin/node #44

Open
djulien opened this issue Sep 1, 2021 · 0 comments
Open

server fails to start if node.js is not at /usr/bin/node #44

djulien opened this issue Sep 1, 2021 · 0 comments

Comments

@djulien
Copy link

djulien commented Sep 1, 2021

The assets/init.d/raspberry-wifi-conf file assumes that node.js is installed at /usr/bin/node. This will not be the case if it was installed via nvm or other non-repo install. see line 19:
sudo /usr/bin/node server.js &

The solution is to either look for node.js on PATH or require the user to create a symlink, for example:
sudo ln -s "$NVM_DIR/versions/node/$(nvm version)/bin/node" "/usr/bin/node"
or, add a #! for node.js to server.js and just run server.js directly, line 19:
sudo server.js &

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

1 participant