NodeJS folder removal @types

I tried to remove the node_modules folder because I updated nodejs and had to reinstall the modules. However, I don't have permission to remove the @types folder, not even with the admin and I wanted to know how to revomer that folder because npm can't install the modules due to lack of permission to that folder. Did I do something wrong with npm? Why can't I delete the folder?

EDIT:
Windows 10
NodeJS 12.2.0
NPM 6.9.0

Author: Simple coder, 2019-05-10

1 answers

Searching a little I found this article .

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

del c:\caminho\para\arquivo\
 1
Author: Ghért B. König, 2019-05-10 12:32:53