-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
EROFS: read-only file system, access '/usr/local/bin' #468
Comments
We have the same issue. And here's another guy. |
Same issue. Noticed previous deploys were using yarn 0.28.4. New ones are using yarn 1.0.0 and causing the issue above |
There's yarnpkg/yarn#4320 filed for this on Yarn's side, which points to the regression being caused by yarnpkg/yarn#3721. The yarn team has opened yarnpkg/yarn#4322 to fix. In the meantime an older version of yarn can be specified in the I wonder whether the nodejs buildpack should not use latest yarn when there is no |
Or at least only use the stable release rather then release candidates. The Yarn homepage currently says:
|
@edmorley thanks for the solution!
|
Just parroting here, but also experienced this issue and thanks for the snippet @hakunin 👍 Definitely lock down your versions of everything using |
Would someone running into this issue mind testing against the patch branch?
|
Using that branch fixed the issue for us, with the compile log showing yarn 0.28.4 being used as intended:
For those with Heroku build log access, see: |
Thanks @edmorley! |
@hunterloftis all good here too, thanks for the prompt fix! |
Resolved by #469 (released ~30s ago). Please let us know if you still run into this issue. Manual testing & version bumping hasn't been a popular choice in node (since the versions change so quickly), but I agree we should try to lock to something other than "latest." Is a scrape of the yarn homepage the best data source, or does someone know of a good way to get metadata like "latest stable version of yarn?" |
I was hoping it would be possible to just refer to what the website uses, however it's static and is updated by a bot whose data source is unknown: The yarn maintainers might have a better suggestion, but one option would be to use the GitHub releases metadata, since it seems to consistently use the pre-release attribute correctly. In fact, the GitHub API docs suggest that this endpoint would do exactly that (return latest excluding pre-release): ...though you'd need to watch out for API rate limiting, if this were performed at compile time (rather than by nodebin.herokai.com and then cached). |
Sorry for the double post - but a reminder for anyone who switched to the |
👍 for The nodebin service will be responsible for resolution, so rate limiting shouldn't be an issue. What do you think @jmorrell? |
Hey @edmorley and @hunterloftis, you can use https://yarnpkg.com/latest-version to get the version number. This uses the exact same data source as the website, and is what the Yarn installation script uses along with all the other automation relating to Yarn releases (eg. the Chocolatey and Homebrew packages are updated as soon as this number is bumped). https://yarnpkg.com/latest.tar.gz will also give you the tarball of the latest stable release. Similarly, you can use https://yarnpkg.com/latest-rc-version and /latest-rc.tar.gz to get the latest RC, and https://nightly.yarnpkg.com/latest-version to get the latest nightly version number (if you like to live dangerously). |
I checked this file at the time, but I'm pretty sure it was giving me the release candidate (1.0.0) rather than what the website was reporting was the latest stable (0.27.5). |
latest.tar.gz should always provide the stable version, not the RC. Unless
someone accidentally bumped the RC to stable :)
Sent from my phone.
…On Sep 8, 2017 3:22 AM, "Ed Morley" ***@***.***> wrote:
https://yarnpkg.com/latest.tar.gz will also give you the tarball of the
latest stable release.
I checked this file at the time, but I'm pretty sure it was giving me the
release candidate (1.0.0) rather than what the website was reporting was
the latest stable (0.27.5).
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#468 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAFnHdu0jtRkkuibB984y9yQAYoVSSH6ks5sgRVNgaJpZM4PODZ1>
.
|
Have done everything even followed heroku's guide but can't resolve my issue.
|
Similar issue! Cannot be solved by any of the provided suggestions. |
Nothing in the app config changed and I am no longer able to deploy it this morning.
Tried making a new PR and the problem persists.
The text was updated successfully, but these errors were encountered: