To install Johnny-Five, once you've made sure Node.js and npm are installed, run the following command:
npm i -g johnny-five raspi-io
This installs the libraries globally; you won't have to reinstall it every new project. And that's it! You're ready to start developing Node.js robotics projects on the Raspberry Pi with Johnny-Five!