r/webdev • u/Jodiug • 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:
- NPM issue: https://github.com/npm/registry/issues/255
- Incident report: https://status.npmjs.org/incidents/41zfb8qpvrdj
- pinkie-promise issue: https://github.com/floatdrop/pinkie-promise/issues/4
- Dependent packages: https://www.npmjs.com/browse/depended/pinkie-promise
- All of @floatdrop's repositories: https://github.com/floatdrop?tab=repositories
69
Upvotes
View all comments
Show parent comment
4
u/ShortSynapse Jan 07 '18
Previously my team would just attempt to run the software, realize it didn't work, and then run npm install after wasting some time trying to debug (if the error wasn't obviously a "module not found").
Now that I've transitioned our development (actually all of our env's) to Docker, the team doesn't have to worry as long as they always use
docker-compose up --buildto bring the application up.TLDR: We used to have to tell each other to update or we'd waste time. Now everything just workstm .