-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
fix: support for newer npm and macOS #33232
Conversation
Thanks for the pull request, @mohd-akram! Please note that it may take us up to several weeks or months to complete a review and merge your PR. Feel free to add as much of the following information to the ticket as you can:
All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here. Please let us know once your PR is ready for our review and all tests are green. |
Hi @openedx/arch-bom! Is this something you could help review/merge for us? |
@mphilbrick211: @kdmccormick did so much work in this area, I wonder if he’d mind taking this on? |
@kdmccormick - let us know if you would be ok reviewing/merging this. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, I can take this on @mphilbrick211
Thanks for the PR @mohd-akram , looking good! Just one change request.
We are currently transitioning from paver update_assets
to npm run build
(details, if you care), so could you test this with npm run build
as well?
macOS does not support the `--force` flag in `cp`, so use the equivalent `-f` flag instead. Newer versions of npm also require `legacy-peer-deps` to be set to true to install successfully. They also no longer have the `npm bin` command, so use `npm root` instead.
23a773b
to
d7b463f
Compare
@mohd-akram Even though your pull request wasn’t merged, please take a moment to answer a two question survey so we can improve your experience in the future. |
Hey Mohamed, I like your proposed change, so I reopened an updated version of your PR over here: #33506 |
Sure thing, thanks for picking it up. |
Description
macOS does not support the
--force
flag incp
, so use the equivalent-f
flag instead. Newer versions of npm also requirelegacy-peer-deps
to be set to true to install successfully. They also no longer have thenpm bin
command, so usenpm root
instead.Testing instructions
Tested with
paver update_assets
.