node-pi-zero
node-pi-zero copied to clipboard
global install packages are not found
thanks for this project anyway when I install a package with npm install -g
package binary is not found even if it's correctly installed. Any idea ?
I used the script to install the last version of node.
Thanks for the tip - fix posted in README.md
leaving issue open so other people can find it too.
https://github.com/sdesalas/node-pi-zero#using-global-npm-modules-ie-mocha-eslint-etc
This does not enable to run global modules with sudo (Example: sudo forever ...). To get this working you have run sudo visudo
and then add /opt/nodejs/bin
in Defaults secure_path="..."
Note: paths are separated with ":"
Maybe this should be added to the Readme as well!