In fact, when you install node, you are outside the installation directory. There is also a cache directory for modules. and other files in your C drive. . So you need to clear them all when deleting. . Then installing and running npm will be no problem. .
Why do you want to create a new folder under node_modules?
Delete the entire node_modules and try npm install again
This prompt is related to permissions.
Try executing cmd with administrator rights and then run npm.
In fact, when you install node, you are outside the installation directory. There is also a cache directory for modules. and other files in your C drive. . So you need to clear them all when deleting. . Then installing and running npm will be no problem. .