我试图在Mac中再次安装gulp,但无法执行。我之前安装过它,而且效果很好。我使用以下方法进行了卸载:
npm uninstall gulp
但是现在当我尝试再次安装它时,我收到了很多带有不同模块的此类警告
WARN tar EISDIR: illegal operation on a directory, open '/usr/local/lib/node_modules/.staging/fsevents-6a1ce00e/node_modules/string_decoder/lib'
WARN tar EISDIR: illegal operation on a directory, open '/usr/local/lib/node_modules/.staging/es5-ext-802ca696/test/string/#/code-point-at'
WARN tar EISDIR: illegal operation on a directory, open '/usr/local/lib/node_modules/.staging/fsevents-6a1ce00e/node_modules/string-width'
WARN tar EISDIR: illegal operation on a directory, open '/usr/local/lib/node_modules/.staging/es5-ext-802ca696/test/string/#/contains'
最后是错误
npm ERR! path /usr/local/lib/node_modules/gulp/node_modules/atob/bin/atob.js
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod '/usr/local/lib/node_modules/gulp/node_modules/atob/bin/atob.js'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
我该怎么办?