WiringPi / WiringPi-Node

Node.js bindings to wiringPi
333 stars 94 forks source link

wiringPiSetup: Must be root. (Did you forget sudo?) #62

Closed Jarvis785 closed 7 years ago

Jarvis785 commented 7 years ago

this is happening for what ?? i also unable to install to install using sudo npm install -g wiring-pi beacuse its asking for password [sudo] password for nobody ??

Jarvis785 commented 7 years ago

here is the install log in /usr/local/lib/node_modules/wiring-pi

install.log.txt

FlorianWendelborn commented 7 years ago

Can you try sudo -s and npm i -g wiring-pi?

Jarvis785 commented 7 years ago

its installed now without errors but...... to run i have to write $ sudo node something.js

its ok to type sudo in terminal and run ...

but when it comes to run at startup automatically .... then it becomes a problem.... its showing :: wiringPiSetup: Must be root. (Did you forget sudo?)

can u say what password to type during global install (sudo npm install -g wiring-pi) ?? my pi's password or what ??

Jarvis785 commented 7 years ago

okey .. can u suggest the best .. robust ..and easy gpio pin library for node.js ??? which one is best ??

FlorianWendelborn commented 7 years ago

Per default, sudo has no password on a raspberry pi. At least that's what I experienced on mine.

Jarvis785 commented 7 years ago

how to run wiring-pi without sudo... wiringPiSetup: Must be root. (Did you forget sudo?) :(

nekuz0r commented 7 years ago
  1. Global installation is not supported (see #38)
  2. It's your JS application that requires to be run as root (see #32)