Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Error while trying to delete node_modules folder #4485


User avatar
0
antonis created

I am using windows 10 and whenever I want to delete node_modules I get the following error:

Invalid MS-Dos function which is cause by the datamaps folder. Check the attachment. Does anyone knows how can I delete this datamaps?

Thanks


7 Answer(s)
  • User Avatar
    0
    yekalkan created

    Hi,

    <a class="postlink" href="https://stackoverflow.com/questions/17883481/delete-a-file-named-nul-on-windows">https://stackoverflow.com/questions/178 ... on-windows</a>

    i'm not sure if this works but it's a known issue.

  • User Avatar
    0
    rattlehub created

    The problem is the 2 files with the name nul.

    If you cant delete a null file run the following command . rename \.\C:\Projects\Company.Product.Web.MVC\node_modules\datamaps\src\js\deletefile\nul.json deletefile.txt

    Then just delete the deletefile.txt

  • User Avatar
    0
    manojreddy created

    Run npm uninstall datamaps in command prompt. It will delete nil.json and nil.topo.jdon. These two files are causing issue.

  • User Avatar
    0
    alper created
    Support Team

    hi,

    Answered on this post => #4434@a108f772-b560-46f2-b470-67cc80b42cf1

  • User Avatar
    0
    alexanderpilhar created

    I use rimraf ([https://github.com/isaacs/rimraf])) to delete node_modules. Deletes stuff in node_modules when everything else fails.

  • User Avatar
    0
    kevinfarrow created

    I used Visual Studio Code. Just browse to the folder, right click and 'delete' each each file

  • User Avatar
    0
    ismcagdas created
    Support Team

    I also use <a class="postlink" href="https://github.com/isaacs/rimraf">https://github.com/isaacs/rimraf</a>, it is faster than regular delete operation.