Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

global install packages are not found #6

Open
dragouf opened this issue Sep 9, 2017 · 2 comments
Open

global install packages are not found #6

dragouf opened this issue Sep 9, 2017 · 2 comments

Comments

@dragouf
Copy link

dragouf commented Sep 9, 2017

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.

@sdesalas sdesalas self-assigned this Sep 12, 2017
@sdesalas
Copy link
Owner

sdesalas commented Sep 12, 2017

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 sdesalas removed their assignment Sep 12, 2017
@sdesalas sdesalas added bug and removed bug labels Sep 12, 2017
@maxx-dev
Copy link

maxx-dev commented May 9, 2019

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants