node-pi-zero icon indicating copy to clipboard operation
node-pi-zero copied to clipboard

global install packages are not found

Open dragouf opened this issue 7 years ago • 2 comments

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.

dragouf avatar Sep 09 '17 16:09 dragouf

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

sdesalas avatar Sep 12 '17 14:09 sdesalas

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!

maxx-dev avatar May 09 '19 12:05 maxx-dev