Tag: fsevents

NodeJs fs.watch / FSWatcher错误

你好我使用以下, Ubuntu 17.04 Node:v6.11.2 NPM:v3.10.10 在安装我的项目依赖关系时,我得到了安装fsevents的警告( 这个错误 ,我忽略了,我用Gulp来运行这个项目。 我得到以下错误, events.js:160 throw er; // Unhandled 'error' event ^ Error: watch /media/app/modules/services/auth/ ENOSPC at exports._errnoException (util.js:1020:11) at FSWatcher.start (fs.js:1443:19) at Object.fs.watch (fs.js:1470:11) at Gaze._watchDir (/media/node_modules/gaze/lib/gaze.js:289:30) at /media/node_modules/gaze/lib/gaze.js:358:10 at iterate (/media/node_modules/gaze/lib/helper.js:52:5) at /media/node_modules/gaze/lib/helper.js:61:11 at /media/node_modules/gaze/lib/gaze.js:420:5 at iterate (/media/node_modules/gaze/lib/helper.js:52:5) at /media/node_modules/gaze/lib/helper.js:61:11 at /media/node_modules/gaze/lib/gaze.js:420:5 at iterate (/media/node_modules/gaze/lib/helper.js:52:5) at /media/node_modules/gaze/lib/helper.js:61:11 at […]

如何解决npm安装在非MAC操作系统上抛出fsevents警告?

npm install命令正在引发以下警告 – npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.2 (node_modules\rea ct-scripts\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@ 1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"} ) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\ch okidar\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@ 1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"} ) 警告显然是导致我们的jenkins工作标记失败,所以我们只是试图摆脱相同的。 我已经检查了这个https://stackoverflow.com/a/42938398/351903但是,不同于在那里提到的,我没有任何/ […]

升级到NPM 5.4.1后,不能运行“npm install”而不删除node_modules

我已经将5.3.0的NPM升级到了5.4.1,在此之后,似乎只有在删除了node_modules后,命令npm install才起作用 。 当我尝试重新运行安装时,出现以下错误消息。 (之后,如果再次删除node_modules ,命令运行安装工作 – 一次 。) PS C:\ source \ website> npm install npm ERR! pathC:\ source \ website \ node_modules \ fsevents \ node_modules \ aproba \ package.jsonvet.Web npm ERR! 代码EPERM npm ERR! errno -4048 npm ERR! 系统调用取消链接 npm ERR! Error:EPERM:operation not permitted,unlink'C:\ source \ website \ node_modules \ fsevents \ […]