在使用: npm i [包名] 安装包时出现如下错误:
npm ERR! code ENOTEMPTY
npm ERR! syscall rename
......
npm ERR! errno -66
ENOTEMPTY: directory not empty, rename '/Users/johnny/Documents/work/next_js/your_project/node_modules/pdf2json' -> '/Users/johnny/Documents/work/next_js/your_project/node_modules/.pdf2json-HnJIflXt'
应该是某次uninstall包后引起的。
处理办法:
删除了项目的文件夹:node_modules,并重新执行 npm install 进行安装 :-)
标签:npm,node,ENOTEMPTY,ERR,modules,rename,失败,安装 From: https://www.cnblogs.com/johnnyzhao/p/17505288.html