raspberry-wifi-conf icon indicating copy to clipboard operation
raspberry-wifi-conf copied to clipboard

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

Open djulien opened this issue 3 years ago • 0 comments

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 &

djulien avatar Sep 01 '21 16:09 djulien