-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Bug report: npm install
fails at exec:fixCryptoApiImports
on MacOS when sed
is GNU sed
#2010
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
Comments
I'm afraid we don't have a device to test this on. Would you be willing to submit a PR that works for you? :) |
I'll look into it. I can test with current MacOS Sequoia 15.4 on a 2018 Mac Mini (Intel Core i5) and on a 2019 MacBook Pro (Intel Core i7), as well as MacOS High Sierra 10.13.6 on a 2012 Mac Mini (also Intel), which went EOL in November 2020, but originates from 2017. That should be back in time far enough. |
May be fixed by using the non-abbreviated Alternatively, just providing a non-empty option to create a backup file will work for sure, it just leaves some trails behind. If you guys don't mind that, this may be the safest option. |
Nope, BSD
I've gone for a solution that actually checks what |
npm install
fails at exec:fixCryptoApiImports
on MacOSnpm install
fails at exec:fixCryptoApiImports
on MacOS when sed
is GNU sed
Adjusted the title and description to better reflect my actual situation. I totally forgot about having setup that alias. My proposed solution doesn't care what your system is, it just checks An arguably better solution would be to just to the text replacement using |
I had the same idea when I submitted #1505 but ran out of gas before coming up with an elegant solution (which I imagined as swapping out calls to |
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
Can't run
npm i
to completion with current master on MacOS. Post-install job "exec:fixCryptoApiImports" fails with ased
error:To Reproduce
I'm on MacOS 15.3.2, on a 2019 Intel MacBook Pro.
edit: and I have setup
sed
to point to GNUsed
.Installed
node
andnpm
usingnvm
, the problem occurs both with the latest LTS and with node@18 and npm@8 as per the (possibly outdated) install instructions.Then simply ran
npm i
.Output:
Expected behaviour
No errors during
npm i
.Desktop:
Additional context
This seems to be related with the special case for "darwin" in the affected job. If I remove the
''
argument to the-i
command line parameter tosed
, the job completes. Presumably, at some point, MacOS started shipping a more compatible version ofsed
.This must be done for the
fixSnackbarMarkup
andfixJimpModule
jobs as well. So basically, the whole special casing can be removed for recent MacOS versions, it seems.The text was updated successfully, but these errors were encountered: