npm i -g wrangler -> deprecated library

Hello, my pipeline fails when i try to install wrangler globally. Im using ´node:16-alpine3.15´.
8 Replies
James
James2y ago
Can you share the full log? That deprecation alone shouldn’t break anything
Johnny Silverhand
The screenshot missed some lines... python is missing as it seems Does wrangler fully support node 18?
James
James2y ago
Node 16 or 18 should be fine, yeah. It looks like it's failing to build better-sqlite3 better-sqlite3 has a tonne of prebuilt binaries, but I imagine alpine isn't one of them, so it's trying to compile from source and then failing
Johnny Silverhand
mhm... it did work for months now 😅 i try another build an see what happens
James
James2y ago
wrangler 3 was released recently which might have changed up some deps. You could try npm i wrangler@2 -g It's generally best to pin dependencies than install them globally
Johnny Silverhand
ah yeah that could be a cause. I will try with wrangler v2 ⛅️ wrangler 2.20.0 (update available 3.0.0) Wrangler v3 was the cause - with 2.x it works fine :) thank you very much @cherryjimbo !
Want results from more Discord servers?
Add your server