macos - 在 Mac 上安装 gulp 时找不到文件
问题描述
我正在尝试再次在我的 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
我该怎么办?
解决方案
推荐阅读
- c# - 在 WPF 中设置 DynamicResouce 图标的颜色
- java - Gradle 构建:Java - 编译器错误
- java - java.lang.ClassNotFoundException 未指定缺少的类
- hadoop - Flume 代理不包含任何有效通道
- javascript - 将 SVG 转换为 jQuery 函数
- azure - 如何将数据湖存储中的文件夹作为参数传递给管道?
- javascript - 在javascript中自然排序包含数字、字母和日期和时间的字符串
- android - 当我单击图像按钮时,获取 recyclerview 项目的位置
- windows-10 - 制作一个单一的按钮睡眠/唤醒 Windows 10
- javascript - Phaser 2 如何在 Phaser.sprite.call 中使用动画