Npm creates project error: operation not permitted, mkdir 'D:\Nodejs\node_cache\_cacache'

introduce

When using npmthe command to create a project, the error is as follows:
insert image description here

solution

Open it 我的电脑, locate it C盘, find the file C:\Users\adminin .npmrc, and delete it with one click. If there is no such file, check the hidden item in 查看the item , and you can see that the file may be a hidden item. As follows:
insert image description here
insert image description here
insert image description here

Guess you like

Origin blog.csdn.net/Shivy_/article/details/128836844