S
S
Stanislav2019-09-14 13:50:27
Node.js
Stanislav, 2019-09-14 13:50:27

How to change a module installed via npm?

I installed the js-beautify module via npm, I needed to change something in it, I found `usr/local/lib/node_modules/js-beautify/js/lib/beautify.js` and corrected it, but this did not affect the module's operation. Even renaming the file did not affect the work. Apparently, we need to rebuild the module, but how to do it? I did not work with node.js, I use only this utility to format my html templates.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
abberati, 2019-09-14
@abberati

You can't change libraries installed via npm. Accept it as a fact or google why. Solve the problem differently.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question