Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
4.0k views
in Technique[技术] by (71.8m points)

npm install 和npm cache clear --force报错

npm ERR! premature close
npm ERR! code ENOTEMPTY
npm ERR! syscall rmdir
npm ERR! path C:Users86199AppDataRoaming pm-cache\_cacachempgit-clone-3e42dca8demo
npm ERR! errno -4051
npm ERR! ENOTEMPTY: directory not empty, rmdir 'C:Users86199AppDataRoaming pm-cache\_cacachempgit-clone-3e42dca8demo'

npm ERR! A complete log of this run can be found in:
npm ERR! C:Users86199AppDataRoaming pm-cache\_logs2020-12-10T07_17_16_161Z-debug.log
PS D:projectfe_pmp_v3> npm cache clear --force
npm WARN using --force I sure hope you know what you are doing.
npm ERR! code ENOTEMPTY
npm ERR! syscall rmdir
npm ERR! path C:Users86199AppDataRoaming pm-cache\_cacachempgit-clone-b0ce8daademo
npm ERR! errno -4051
npm ERR! ENOTEMPTY: directory not empty, rmdir 'C:Users86199AppDataRoaming pm-cache\_cacachempgit-clone-b0ce8daademo'


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

1.报错说directory not empty,你这个目录不是个空目录,你看下
2.错误码errno -4051,可以搜一下这个错误码
3.删掉你的node_modules,重新install


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...