rimraf to the rescue

Question: ever encountered this exception :

Cannot delete : The file name you specified is not valid or too long. Specify a different file name

Answer : install rimraf and the delete the dir. basically, what it does is rm -rf

Step by Step :

>npm install -g rimraf

...
└─┬ rimraf@2.4.3
  └─┬ glob@5.0.15
    ├─┬ inflight@1.0.4
    │ └── wrappy@1.0.1
    ├── inherits@2.0.1
    ├─┬ minimatch@3.0.0
    │ └─┬ brace-expansion@1.1.1
    │   ├── balanced-match@0.2.1
    │   └── concat-map@0.0.1
    ├── once@1.3.2
    └── path-is-absolute@1.0.0
...

>rimraf path_to_your_dir 

(prerequisite : You should already have node installed)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s