Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "node_module"
-
Haven’t been on here for ages, but I felt like I needed to post this:
Warning:
This is long, and it might make you cry.
Backstory:
A couple of months back I worked for a completely clueless dude who had somehow landed a contract for a new website for a huge company. After a while he realised that he was incapable of completing the assignment. He then hired me as a subcontractor and I deleted literally everything he had done and started from scratch. He had over promised and under explained what needed to be done to me. It took many sleepless nights to get this finished with all the amendments and I had to double my pricing because he kept changing the brief.
Even after doubling my prices I still put in way too many hours of work. At one point I had enough and just ghosted the guy as I had done what he asked, and when he submitted it to them they wanted changes. He couldn’t make the changes, so I had to. He wouldn’t pay me extra though. I decided it wasn’t worth my time.
A couple of days ago I heard from him again. He had found another subcontractor to finish the changes. He still needed a few things though, so he promised me that I would get paid after fixing those things. I looked at the few things he had listed in our KANBAN and thought it was a few easy tasks.. until I opened the project..
I had my computer set up to sync with his server because he wanted everything done live and in production. So I naturally thought I would just “sync down” everything that the other subcontractor had done.
Here is where the magic started to happen.. I started the sync and went to grab a glass of water, and it was still running when I came back. I looked at the log and saw a bunch of “node_module” files syncing - around 900 folders. Funny thing is; neither the site nor server has anything to do with node..
I disregarded this and downloaded the files in a more manual fashion to a new folder. Interestingly I could see that my SCSS folders had not been touched since I stopped working on the project.. interesting, I thought to myself..
Turns out, the other subcontractor had taken my rendered and minimised CSS file, prettified it and worked from there. This meant that the around ~1500 lines of SCSS neatly organised in around 20 files was suddenly turned into a monster of a single CSS file of no less than 17300 lines.
I tried to explain to the guy that the other subcontractor had fucked up, but he said that I should be able to fix it since I was the one that made it initially. I haven’t replied. My life is too short for this.8 -
FUCKING SHIT ! IS THIS WHAT YOU CALL A QUALITY REPO ?
FUCKING NODE_MODULES IN YOUR FUCKING REPO ?11 -
He asked me for help on something, i didnt find the problem so i asked him to create a new branch and let me figure it out.
I went back to my PC, cloned the project, but it took me like forever ..
node_module was removed from .gitignore, i asked him why ? He said "i changed on the source of a package i used, what can go wrong? " ...
I almost hit him with a chair c: -
WTF
/Users/me/my_company/my_project/node_modules/gulp-sass/node_modules/node-sass/node_modules/pangyp/bin/node-gyp
this is getting ridiculous8 -
New side project just started, node_module weights 135 mo.
By the way, Bootstrap 4 and its thousands of depencies should suck a round of cocks3 -
$ rails new [old side project but this time I will finish it (sikes)]
$ cd [project]
[ Inserting "gem 'webpacker' ~> '3.0.0'" in Gemfile ]
$ bundle install
$ rails webpacker:install
$ rails webpacker:install:react
node_modules weights 97.4 mo 🙄3 -
Creating a script that switches a global node_module package version (because we have legacy projects mixed with normal ones)
-
When the projects repository has node_modules/, and you need build styles:
rm -rf node_modules/*
npm install
gulp compile
rm -rf node_modules/*
git checkout node_module/3 -
Todo: write rant about fs not not being a functional node_module and dotenv still trying to require() it.
Add details about the whole hour you lost because of that. -
Hey guys, is there an easy way to avoid having all that bunch of stuff node_module comes with when you create a React project. Shit consumes more that 200mb on the fly. Do I fucking need all that stuff packed inside node_module?12