Solucionado (ver solução)
Solucionado
(ver solução)
2
respostas

Erro com o Gulp (ajuda pfvr)

Boa tarde pessoas,

Tive alguns problemas ao tentar instalar os arquivos com o "npm install -g gulp-cli"

npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
C:\Users\Arthur\AppData\Roaming\npm\gulp -> C:\Users\Arthur\AppData\Roaming\npm\node_modules\gulp-cli\bin\gulp.js
+ gulp-cli@2.3.0
updated 1 package in 12.295s

entrei no site https://github.com/lydell/urix#deprecated e utilizei o comando npm install urix, que também não foi frutífero...

Assim como o NPM install mostrou no terminal algumas mensagens:

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 gulp-util@2.2.20: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
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 natives@1.1.6: 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 deprecated browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated uuid@2.0.3: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
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

> gifsicle@3.0.4 postinstall C:\Users\Arthur\Git\performance-web\node_modules\gifsicle
> node lib/install.js

  √ gifsicle pre-build test passed successfully

> jpegtran-bin@3.2.0 postinstall C:\Users\Arthur\Git\performance-web\node_modules\jpegtran-bin
> node lib/install.js

  √ jpegtran pre-build test passed successfully

> optipng-bin@3.1.4 postinstall C:\Users\Arthur\Git\performance-web\node_modules\optipng-bin
> node lib/install.js

  √ optipng pre-build test passed successfully
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN notsup Unsupported engine for got@5.7.1: wanted: {"node":">=0.10.0 <7"} (current: {"node":"14.16.0","npm":"6.14.11"})npm WARN notsup Not compatible with your version of node/npm: got@5.7.1
npm WARN curso-alura-site@0.0.1 No repository field.
npm WARN curso-alura-site@0.0.1 No license field.

added 913 packages from 443 contributors and audited 913 packages in 131.59s

11 packages are looking for funding
  run `npm fund` for details

found 117 vulnerabilities (23 low, 42 moderate, 52 high)
  run `npm audit fix` to fix them, or `npm audit` for details

e, por fim, ao tentar utilizar o comando gulp minify-js:

ReferenceError: primordials is not defined
    at fs.js:45:5
    at req_ (C:\Users\Arthur\Git\performance-web\node_modules\natives\index.js:143:24)
    at Object.req [as require] (C:\Users\Arthur\Git\performance-web\node_modules\natives\index.js:55:10)
    at Object.<anonymous> (C:\Users\Arthur\Git\performance-web\node_modules\graceful-fs\fs.js:1:37)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (internal/modules/cjs/helpers.js:88:18)

Alguém consegue me ajudar?

2 respostas

Devo entrar um por um nos sites indicados nas mensagens de aviso?

solução!

Consegui resolver o problema acessando esse post https://cursos.alura.com.br/forum/topico-gulp-cli-2-3-0-16-06-2020-116751