Node.js – Problem solved – How remove node_modules files in Windows (error: filename is too long)

On Windows System we can install modules thanks to nmp.exe. But problem is begining when we try to remove folder contained files from installed packages.  During deleting operation Windows can’t delete the folder as its name is too long and we’ve got following message “The source file name(s) are larger than is supported by the file system. Try moving to a location which has a shorter path name, or try renaming to shorter name(s) before attempting this operation“.

To solve this:

1. Install RimRaf:

npm install rimraf -g

2. And in the project folder delete the node_modules folder easily with:

rimraf node_modules

May 12th, 2016

  • Appreciating the time and effort you put into your website and in depth information you offer.
    It’s great to come across a blog every once in a while that isn’t the same unwanted
    rehashed material. Excellent read! I’ve saved your site and I’m including your RSS feeds to my Google account..

  • Hiya very nice web site!! Guy .. Excellent .. Wonderful ..
    I’ll bookmark your blog and take the feeds additionally?
    I am glad to search out so many useful information right here within the publish,
    we’d like develop extra techniques in this regard,
    thank you for sharing. . . . . ..

  • Thanks for ones marvelous posting! I quite enjoyed reading it,
    you’re a great author. I will always bookmark your blog site and may often keep
    coming back at some point. I wish to encourage continue your great job, use a nice day!.

  • Thanks for ones marvelous posting! I quite enjoyed reading it,
    you’re a great author. I will always bookmark your blog site and may often keep
    coming back at some point. I wish to encourage continue your great job, use a nice day!.

  • I’d love to be grateful for the efforts you’ve place in penning this blog.

    I’m hoping to examine a similar high-grade content by you
    in the future too. In fact, your creative writing abilities
    has inspired me to obtain my own, personal, personal website now ;).

  • Thank you so much for providing individuals with an extremely nice opportunity to read from this web site. It’s always so beneficial and as well , packed with a great time for me personally and my office friends to visit your website particularly thrice in one week to study the latest issues you will have. Of course, we’re always happy with your awesome ideas you serve. Certain two facts in this posting are unequivocally the most suitable we have had..