X Tutup
The Wayback Machine - https://web.archive.org/web/20200917220231/https://github.com/nodejs/docker-node/issues/1310
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

Inquiry: Is `--no-same-owner` the possible cause for issues such as `cannot run in wd` #1310

Open
joshlangner opened this issue Aug 11, 2020 · 1 comment

Comments

@joshlangner
Copy link

@joshlangner joshlangner commented Aug 11, 2020

While researching the issue discovered when trying to run install scripts in package.json, where I receive error cannot run in wd (Example: https://stackoverflow.com/questions/18136746/npm-install-failed-with-cannot-run-in-wd), I suspected permission or ownership discrepancies, and traced down to where nodejs was actually being installed and by what user.

Is it possible that the inclusion of --no-same-owner can cause install scripts to fail?

&& tar -xJf "node-v$NODE_VERSION-linux-$ARCH.tar.xz" -C /usr/local --strip-components=1 --no-same-owner \

Many recommendations are to run npm with the flag --unsafe-perm or other risky actions, which, obviously, is not safe. I'd love to identify the root issue and resolve it, if possible.

@matrix4123
Copy link

@matrix4123 matrix4123 commented Sep 17, 2020

@joshlangner Were you able to resolve this? I am getting a similar error but within postinstall.

"cd ./functions && npm install --unsafe-perm && cd ../plugins/firestore-local && npm install --unsafe-perm"

I am trying to run this command and getting the 'cannot run in wd' error.

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.
X Tutup