Nodejs Removal of @types folder

Asked

Viewed 132 times

0

I tried to remove the node_modules folder because I updated the nodejs and had to reinstall the modules. However, I am not allowed to remove the @types folder, not even with the administrator and I wanted to know how to revomer this folder because npm cannot install the modules due to lack of permission to that folder. I did something wrong with npm? Why can’t I delete the folder?

EDIT:
Windows 10
Nodejs 12.2.0
NPM 6.9.0

  • Which operating system?

  • @Ghértb.König edited the question with additional information

1 answer

1


Researching a little I found this article.

In it there are several ways to resolve this permission problem. One of them is to remove via command prompt (cmd). Open the cmd and execute the command:

del c:\caminho\para\arquivo\
  • I’ve tried both del and rmdir, none worked and in admin, I can’t change permissions

  • I was able to install an Antivirus, disabling that Antivirus and then I did npm Uninstall and deleted the folder

Browser other questions tagged

You are not signed in. Login or sign up in order to post.