step 1:) you run the npm commond in Administrator mode
for this
click on window button
type cmd
select run as Administrator mode and press enter
step2 :) install the npm through this commond
->npm install npm@latest
after these 2 steps this problem will be solved