-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Yarn fakeroot problems #2536
Comments
I have the same problem T__T |
same here |
On a second look, the version I experience the problem with are different, Using 0.21.3-1 debian package generation using fakeroot works. |
Tebro
added a commit
to Tebro/yarn
that referenced
this issue
Jul 13, 2017
Tebro
added a commit
to Tebro/yarn
that referenced
this issue
Jul 13, 2017
Tebro
added a commit
to Tebro/yarn
that referenced
this issue
Jul 13, 2017
Tebro
added a commit
to Tebro/yarn
that referenced
this issue
Jul 13, 2017
Tebro
added a commit
to Tebro/yarn
that referenced
this issue
Jul 13, 2017
Tebro
added a commit
to Tebro/yarn
that referenced
this issue
Jul 13, 2017
BYK
pushed a commit
that referenced
this issue
Jul 16, 2017
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
I have a Debian package that invokes Yarn during the install step.
Under Yarn 0.18.1 and previous versions, this worked fine. Starting with Yarn 0.19.1, it fails:
If the current behavior is a bug, please provide the steps to reproduce.
fakeroot yarn add lodash
What is the expected behavior?
fakeroot yarn
should work as well as runningyarn
by itself does.I believe that this issue was introduced by #2150. Since fakeroot is commonly used in building Debian packages,
fakeroot sets the
FAKEROOTKEY
environment variable (see here), so one possible fix is to only switch to/usr/local/share
ifisRootUser(getUid()) && process.env.FAKEROOTKEY == null
.Please mention your node.js, yarn and operating system version.
Node 6.9.4
Yarn 0.19.1
Ubuntu 14.04
The text was updated successfully, but these errors were encountered: