Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Consigo executar tranquilamente o npx cypress open, PORÉM não consigo rodar o npx cypress run

Quando tento rodar o npx cypress run, o console apresenta o seguinte erro:

C:\Programacao\automacao\primeiro-projeto>npx crypress run
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/crypress - Not found
npm ERR! 404
npm ERR! 404  'crypress@latest' 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! A complete log of this run can be found in:
npm ERR!     C:\Users\molin\AppData\Roaming\npm-cache\_logs\2022-07-11T23_05_43_770Z-debug.log
Instalação de [ 'crypress@latest' ] falhou com código 1

A informação de LOG que ele comenta acima é a seguinte:

0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli   'C:\\LinguagensESoftwaresDeApoio\\Linguagens\\nodejs\\node.exe',
1 verbose cli   'C:\\LinguagensESoftwaresDeApoio\\Linguagens\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'install',
1 verbose cli   'crypress@latest',
1 verbose cli   '--global',
1 verbose cli   '--prefix',
1 verbose cli   'C:\\Users\\molin\\AppData\\Roaming\\npm-cache\\_npx\\13548',
1 verbose cli   '--loglevel',
1 verbose cli   'error',
1 verbose cli   '--json'
1 verbose cli ]
2 info using npm@6.14.10
3 info using node@v14.15.4
4 verbose npm-session 74272865519a0b1f
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 http fetch GET 404 https://registry.npmjs.org/crypress 139ms
8 http fetch GET 404 https://registry.npmjs.org/crypress 22ms
9 silly fetchPackageMetaData error for crypress@latest 404 Not Found - GET https://registry.npmjs.org/crypress - Not found
10 timing stage:rollbackFailedOptional Completed in 1ms
11 timing stage:runTopLevelLifecycles Completed in 184ms
12 verbose stack Error: 404 Not Found - GET https://registry.npmjs.org/crypress - Not found
12 verbose stack     at C:\LinguagensESoftwaresDeApoio\Linguagens\nodejs\node_modules\npm\node_modules\npm-registry-fetch\check-response.js:117:15
12 verbose stack     at processTicksAndRejections (internal/process/task_queues.js:93:5)
13 verbose statusCode 404
14 verbose pkgid crypress@latest
15 verbose cwd C:\Programacao\automacao\primeiro-projeto
16 verbose Windows_NT 10.0.19044
17 verbose argv "C:\\LinguagensESoftwaresDeApoio\\Linguagens\\nodejs\\node.exe" "C:\\LinguagensESoftwaresDeApoio\\Linguagens\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "crypress@latest" "--global" "--prefix" "C:\\Users\\molin\\AppData\\Roaming\\npm-cache\\_npx\\13548" "--loglevel" "error" "--json"
18 verbose node v14.15.4
19 verbose npm  v6.14.10
20 error code E404
21 error 404 Not Found - GET https://registry.npmjs.org/crypress - Not found
22 error 404
23 error 404 'crypress@latest' is not in the npm registry.
24 error 404 You should bug the author to publish it (or use the name yourself!)
25 error 404 Note that you can also install from a
26 error 404 tarball, folder, http url, or git url.
27 verbose exit [ 1, true ]

Como faço para solucionar este problema?

1 resposta
solução!

Olá Andre, tudo bem?

Pelo que verifiquei aí no código, o Cypress tá escrito errado, tá escrito crypress. Tente fazer o ajuste e veja se funciona por favor.

Se a dúvida permanecer, não deixe de nos informar por aqui.

Bons estudos! 😄

Caso este post tenha lhe ajudado, por favor, marcar como solucionado ✓.Bons Estudos!