Answer the question
In order to leave comments, you need to log in
What should I do if a third-party module uses too long names?
Hello. The essence of the problem:
I use a third-party module that works without problems separately (when installed globally), however, when I place this module in the node_modules of my module, a rake appears due to too long paths to files / folders.
Those. my module can no longer just be taken and installed globally, I have to use the
npm link command .
Is there a solution to this situation in the internal mechanisms of npm ?
Answer the question
In order to leave comments, you need to log in
The problem was solved by copying some modules from the dependencies of the used module into your own dependencies.
package.json
{
"dependencies": {
"js-yaml": "^3.3.1",
"yards-cli": "0.1.5"
}
}
{
"dependencies": {
"тяжелый-модуль-с-длинными-именами": "0.0.7"
}
}
{
"dependencies": {
"js-yaml": "^3.3.1",
"yards-cli": "0.1.5",
"тяжелый-модуль-с-длинными-именами": "0.0.7"
}
}
{
"dependencies": {
"тяжелый-модуль-с-длинными-именами": "0.0.7"
}
}
require('module_name/path/to/file.js');
too long file/folder pathsThese are file system problems. Moreover, this particular file system, and I even know which one.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question