N
N
Nikita Ivanov2015-10-22 17:36:40
Node.js
Nikita Ivanov, 2015-10-22 17:36:40

How to get rid of the cant with node_modules names?

Tried to move a folder with a project using npm, Windows cursed at too long target path: D:\1Design\Angular_guide\node_modules\gulp\node_modules\gulp-util\node_modules\dateformat\node_modules\meow\node_modules\normalize-package-data\ node_modules\validate-npm-package-license\node_modules\spdx-expression-parse\node_modules\spdx-exceptions. As you can see, there are a lot of nested subfolders named node_modules. How can you deal with this crap?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander, 2015-10-22
@alexofree

IMHO - it's easier to switch to Linux. The problem with the names in Windows itself.
Or try to use symbolic links, but I'm not sure that will help.

D
Dmitry Kravchenko, 2015-10-22
@mydearfriend

I will suggest the most obvious way: cut out node_modules, move the project,
npm install

K
Konstantin Kitmanov, 2015-10-22
@k12th

npm 3 makes the tree as flat as possible, these issues should go away. npm install [email protected] -g
Unfortunately, I don't know what to do with what I have.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question