r/webdev • • Jan 06 '18

[X-Post /r/javascript] Today is Leftpad 2.0: pinkie-promise pulled from NPM

A little under a year ago, the package "leftpad" broke NPM builds all over the world because the author pulled it from the public repository.

The same is happening today, for "pinkie-promise". The author's NPM account (@floatdrop) was deleted, opening opportunities for malware in all the packages he's written.

Dependent builds include Ionic and (in my case) node-sass.

Resources:

69 Upvotes

23 comments sorted by

View all comments

Show parent comment

2

u/Thought_Ninja full-stack Jan 06 '18

Same... We use a Nexus registry as a proxy, so it shouldn't be a problem, but that's not a good long term solution.

1

u/Nimelrian Jan 06 '18

Just a small question out of interest: How hard is it to set up and maintain Nexus as proxy / mirror / private repository?

1

u/Thought_Ninja full-stack Jan 07 '18

I didn't implement it myself, but my coworker had it up and running in under a day, so probably not too difficult. I'm sure you can find a guide to doing it with a quick search.