Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

212
Views
Making changes to an installed node package?

I have an external node package installed in my project. It does 90% of what I want but I'd like to make some changes to it. I don't want to submit a PR to developer since these changes are unique to my situation and would only be used by me. What would the best way to go about this? Inside my node_modules folder, the JS file of the library is minified so it's hard to make out anything or edit anything in a coherent manner.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You shouldn't be really messing about with the node_modules folder, as the code is usually minified (as you have stated).


However, the most reasonable approach to do is to follow the steps below.

  1. Fork the repository on GitHub, and add whatever changes you need to add in the forked repository.

  2. If you want, you can make a new npm module (if you have an account), and install that in your project.

    Otherwise, you can just add it as a folder in your project, or something like that.

Make sure that this isn't overkill for your project!


In conclusion, you shouldn't make changes to the node_modules folder, but you can fork the repository as an alternative.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!