代码之家  ›  专栏  ›  技术社区  ›  joserg

我无法在本地安装gulp,\node\u modules\ansi regex出错

  •  0
  • joserg  · 技术社区  · 7 年前

    我试图在Windows 10上安装Gulp,但在本地安装时出错。

    $ node -v
    v9.10.1
    
    $ npm -v
    5.6.0
    

    我在全球范围内安装了Gulp:

    $ npm install --global gulp-cli
    
    $ gulp -v
    CLI version 2.0.1
    
    $ npm init
    ...
    

    现在我尝试在本地安装它,但…:

    $ npm install --save-dev gulp
    npm WARN deprecated gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
    npm WARN deprecated graceful-fs@3.0.11: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
    npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
    npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
    npm WARN deprecated graceful-fs@1.2.3: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
    npm WARN deprecated natives@1.1.2: This module relies on Node.js's internals and will break at some point. Do not use it, and update to graceful-fs@4.x.
    npm WARN css-clase10@1.0.0 No description
    npm WARN css-clase10@1.0.0 No repository field.
    
    npm ERR! path C:\Users\Jose\Documents\Programacion\CSS desde 0\CSS-Clase10\node_modules\ansi-regex
    npm ERR! code ENOENT
    npm ERR! errno -4058
    npm ERR! syscall rename
    npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\Jose\Documents\Programacion\CSS desde 0\CSS-Clase10\node_modules\ansi-regex' -> 'C:\Users\Jose\Documents\Programacion\CSS desde 0\CSS-Clase10\node_modules\.ansi-regex.DELETE'
    npm ERR! enoent This is related to npm not being able to find a file.
    npm ERR! enoent
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!     C:\Users\Jose\AppData\Roaming\npm-cache\_logs\2018-03-30T14_43_45_408Z-debug.log
    

    你知道我为什么会犯这个错误吗。

    谢谢

    1 回复  |  直到 7 年前
        1
  •  0
  •   joserg    7 年前

    好的,解决了。

    https://github.com/zurb/foundation-sites/issues/10826

    问题是Malwarebytes