Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
nicce
· 1mo ago · 0 comments
Great reminder to always disable these scripts unless going through the hassle to verify if it does something absolutely useful.
Comments
[–]
chrisweekly
1mo ago
Use pnpm!
[–]
madeofpalk
1mo ago
Every node package manager disables preinstall scripts by default now!
[–]
nicce
OP
1mo ago
You need to explicitly update npm to 12 before this is true in Node.
[–]
ameliaquining
1mo ago
That's no longer necessary for security; npm doesn't run install scripts by default anymore.
[–]
chrisweekly
1mo ago
Pnpm is still better in every way.
[–]
nicce
OP
1mo ago
Default npm version is still 11 on every Node install. Almost there, but not yet!
[–]
ameliaquining
1mo ago
Huh, I already got the new behavior last time I tried this, and I didn't manually enable it. I wonder why.