windows – nivas,b:=log() https://www.nivas.hr/blog This is a blog from the Nivas.hr crew to the galaxy of unknown. Wed, 19 Oct 2016 20:08:53 +0000 en-US hourly 1 https://wordpress.org/?v=5.8.2 Delete node_modules dir in Windows https://www.nivas.hr/blog/2016/10/19/delete-node_modules-dir-in-windows/ https://www.nivas.hr/blog/2016/10/19/delete-node_modules-dir-in-windows/#comments Wed, 19 Oct 2016 19:40:51 +0000 https://www.nivas.hr/blog/?p=2493 You are a happy Windows user. You have just upgraded your nodejs (if you can) and now you have to delete local /node_modules directory to install brand new packages. Problems?

The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters

Yes, Windows can’t delete this directory because of the limitations in system. What now? Don’t worry, NPM comes to the rescue.

Just install Node package rimraf.

> npm install rimraf -g

Move to direcotry above node_modules and execute.

> rimraf node_modules

4466041

Tell me how it goes :)

]]>
https://www.nivas.hr/blog/2016/10/19/delete-node_modules-dir-in-windows/feed/ 4