introduce
When using npm
the command to create a project, the error is as follows:
solution
Open it 我的电脑
, locate it C盘
, find the file C:\Users\admin
in .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: