-
Notifications
You must be signed in to change notification settings - Fork 334
node v17.1.0 doesn't accept --openssl-legacy-provider on Arch Linux #2155
Comments
Closing this issue, but let me know if you need further assistance. |
Ermm... I am not sure why, but my system nodejs binary thinks other way:
Rollback to 1.18.0 is a temporary workaround for me, but I'd rather say that it's at least non-yarn issue. upd the nodejs package was updated a few days ago to 17.2, but I still have the same issue after the upgrade
Here's the configuration of binary https://github.com/archlinux/svntogit-community/blob/461ff1c2d1af0aa73409d293168669a9ea96899c/trunk/PKGBUILD#L26-L36 |
I think it should be related to https://nodejs.org/en/blog/release/v17.0.0/#openssl-3-0 But Arch Linux uses the shared openssl
It looks like wrangler makes an assumption for a key update: as one of possible and reliable ways to figure it out:
It returns nothing for me |
Ugh, this is clearly annoying, sorry that you're bumping into it. We have to currently absorb this problem because we're using webpack 4 and cannot update it here. (In wrangler2 we're doing away with webpack altogether, and will have automation to upgrade older projects) I think a better solution here is to modify the clickhouse template; change Another option is to downgrade node, and use v16+, which is supported and should work just fine right now. Sorry again for the trouble! |
I'll note that I'm running into this problem also with Homebrew on macOS 11.6.1 (ARM64): $ wrangler build && wrangler publish
/opt/homebrew/bin/node: bad option: --openssl-legacy-provider
...
$ node --version
v17.2.0
Indeed, this returns nothing for me as well with Node.js v17.2.0 installed via Homebrew. |
We're open to PRs that could potentially detect this situation and conditionally add the flag. |
$ wrangler --version
wrangler 1.19.6
$ /usr/local/bin/node --version
v17.3.0
$ /usr/local/bin/node --open-legacy-provider
/usr/local/bin/node: bad option: --open-legacy-provider
$ wrangler dev
/usr/local/bin/node: bad option: --openssl-legacy-provider
Error: failed to execute `"/usr/local/bin/node" "--openssl-legacy-provider" "/Users/myuser/Library/Caches/.wrangler/wranglerjs-1.19.6" "--output-file=/var/folders/yl/hlnm4n1j05g6x987xbh1xyg00000gn/T/.wranglerjs_output4Mn4X" "--wasm-binding=WASM_MODULE" "--no-webpack-config=1" "--use-entry=/Users/myuser/htdocs/cf-test/index.js"`: exited with exit status: 9 OSX 12.0.1 |
🐛 Bug report
Describe the bug
wrangler dev
andwrangler preview
fail to run with errorReproduce the bug
A list of steps to reproduce the bug.
yarn global add @cloudflare/wrangler
wrangler preview
Expected behavior
I'd be happy to see at least one of rust and nodejs solutions working :-j
Environment and versions
Fill out the following information about your environment.
wrangler -V
:wrangler 1.19.5
node -v
:v17.1.0
wrangler.toml
:The text was updated successfully, but these errors were encountered: