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

Build failure: install.sh: line 28: ../../install.log: Permission denied #86

Open
michaeljanich opened this issue Oct 30, 2017 · 1 comment

Comments

@michaeljanich
Copy link

$ sudo npm i -g wiringpi-node

[email protected] install /usr/local/lib/node_modules/wiringpi-node
/bin/bash ./install.sh

Making libWiringPi ... ./install.sh: line 28: ../../install.log: Permission denied
./install.sh: line 29: ../../install.log: Permission denied
failed.

Cannot find file install.sh to fix it. All directories removed again. If I press CTRL-C during the build, I still cannot find the file.

THANKS!!

-M
@bgiddings
Copy link

Node tries to install as user nobody:

npm/npm#1259

Which is seen as a security issue by many:

npm/npm#3849

There's apparently a work-around of using the "unsafe" flag:

sudo npm install blerg --unsafe

What's happening here is that it is trying to create the file install.log in the current directory:

git clone https://github.com/nekuz0r/wiringpi.git -b 2.25 > ./install.log 2>&1

But, since "nobody" has no access, it fails.

If it used something like mktemp it could possibly still run as nobody, but it seems like installed files should be owned by a non-nobody user.

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

No branches or pull requests

2 participants