-
Notifications
You must be signed in to change notification settings - Fork 23
Permissions issues. #26
Comments
I also encountered this issue. I resolved it by a very temporary solution |
Not sure if related but, my install "succeeds" but the output says 0/34. So not sure if anything was actually installed. |
I tried on another clean OS install (ElementaryOS VM) and it worked perfectly. I think Ubuntu had issues. It would be great if someone can pinpoint what the problem is. |
I mentioned that one solution is to just vendor all the dependencies : that's quite easy and takes yarn completely out of the equation. It works on any node version as well. Just a thought. |
I'm also running into the permission problems trying to install this on Ubuntu 17.04 server. I have to use I've noticed it gives the latter error even if |
This is an example of one of the permissions issues that yarn is causing. Do you think upgrading to the latest yarn would fix things? |
I'll try to repro now as I merged the latest yarn source tree into esy.
…On Sat, 20 May 2017 at 09:22 Jordan W ***@***.***> wrote:
@andreypopp <https://github.com/andreypopp>
This is an example of one of the permissions issues that yarn is causing.
Do you think upgrading to the latest yarn would fix things?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#26 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAB3giQSuqtu8gyzyI4SRkA1fN47JLlRks5r7oa4gaJpZM4NFUIJ>
.
|
Looks like the reason it doesn't install is npm/npm#3849 which tl;dr is "npm runs lifecycle scripts with nobody uid".
Which That + the fact that yarn for some reason attempts to create Even in case we fix The downside is that such global installations won't warm up Esy cache. |
Hah, setting
is 131 bytes long. |
Just for the record: |
The shebang limitations are a known issue with installing any interpreter not in the global directories like
That should eliminate many cases of shebang limits and generally make all the log outputs look nicer. |
Does this mean that any postinstall script that wants to write to a user's home directory will fail - but only on ubuntu? |
Yeah, that's a good idea.
I suspect any Linux. |
I think at this point we could consider an alternative for global installs with Esy.
That's two commands rather than a single one but still easy to start with. Though agree it lacks an elegance of "using the known tooling" — npm. I think that could solve permission issues without sacrificing warming up Esy cache. |
Is there really no other way around it? What about ejecting to a shell script that downloads packages into the proper/expected node_modules structure. If that is a desired feature anyways, does it solve any problems here? |
Hello! I wanted to tinker around with Reason and tried installing it using npm, however ran into the same issues mentioned here and here - essentially this error For the time being I'm going to try installing from OPAM. |
Okay, opam is (until we get reliable binary releases) the officially supported installation method and hopefully we'll have good news soon about reason-cli permissions issues. |
For anyone coming across this: On a new Debian Stretch install. npm install and sudo npm install both failed (with permission issues but in different locations). yarn global add whatever worked great, though. |
@mini-eggs Would be great to know the npm version and how node/npm were installed (nvm?) |
No problem! No NVM: evan@debian:~$ npm --version
5.6.0
evan@debian:~$ node --version
v9.4.0 |
People tend to do sudo to globally install a module. But
reason-cli
quicklycd
s intoactualInstall
where we do the real install / build locally.That second install is done as sudo, yet it's a local project from the perspective of
yarn
which is used under the hood. I believe there's some yarn permissions issues if the first time you ever create the ~/.cache/yarn directory is invoked with sudo. It will set perms to be root or something. The ~/.cache is to be used for local projects. If you install a local yarn project using sudo the same issue would likely happen.I'm not sure what the solution is.
The text was updated successfully, but these errors were encountered: