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

Erro ao baixar Gulp

Ao dar comando de instalação do Gulp:

C:\Users\pribe\Downloads\Alura\EngFrontEnd\projeto>npm install gulp3.9.0 --save-dev

Apareceram os erros abaixo:

npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "gulp3.9.0" "--save-dev"
npm ERR! node v6.9.2
npm ERR! npm  v3.10.9
npm ERR! code E404

npm ERR! 404 Registry returned 404 for GET on https://registry.npmjs.org/gulp3.9.0
npm ERR! 404
npm ERR! 404  'gulp3.9.0' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\pribe\Downloads\Alura\EngFrontEnd\projeto\npm-debug.log

Por favor, poderiam me explicar o que pode ter acontecido?

Aguardo, obrigada!

7 respostas

Você criou o package.json primeiro?

Ah, veja que sua instrução não esta correta.

install gulp3.9.0 --save-dev

Faltou @.

install gulp@3.9.0 --save-dev

Feliz 2017!

Sim.

C:\Users\pribe\Downloads\Alura\EngFrontEnd\projeto>npm init
This utility will walk you through creating a package.json file.
It only covers the most common items, and tries to guess sensible defaults.

See `npm help json` for definitive documentation on these fields
and exactly what they do.

Use `npm install <pkg> --save` afterwards to install a package and
save it as a dependency in the package.json file.

Press ^C at any time to quit.
name: (projeto)
version: (1.0.0)
description:
entry point: (index.js)
test command:
git repository:
keywords:
author:
license: (ISC)
About to write to C:\Users\pribe\Downloads\Alura\EngFrontEnd\projeto\package.json:

{
  "name": "projeto",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "ISC"
}


Is this ok? (yes) yes
solução!

Ah, veja que sua instrução não esta correta.

install gulp3.9.0 --save-dev

Faltou @.

install gulp@3.9.0 --save-dev

Feliz 2017!

Tudo certo agora Priscila?

Ah ... não tinha enxergado esse @ no comando rs

Obrigada!

Também estou com um problema parecido, professor. :/

npm ERR! Windows_NT 10.0.15063
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "gulp@3.9.0" "--save-dev"
npm ERR! node v6.3.1
npm ERR! npm  v3.10.3
npm ERR! code ENOSELF

npm ERR! Refusing to install gulp as a dependency of itself
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\Vand\workspace\alura\gulp\npm-debug.log