Y
Y
Yurka Blokhin2020-09-24 14:23:21
Node.js
Yurka Blokhin, 2020-09-24 14:23:21

How to make the modified nodejs module loaded not from the node_modules folder?

Tell me, I need to change two parameters in one module, how to make it so that now, when the project starts, this module is loaded not from the node_modules folder, but from its own folder, I tried to do it via npm link, but an error occurs: Module not found: Can't resolve .. .

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dima, 2020-09-24
@blrik

Fork the original, make corrections, commit. In dependencies, specify your fork instead of the original

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question