1
resposta

Problemas no ambiente

ola boa noite , meus 2 ambientes api, e alurapic, esta dando erro , uso linux ubuntu, ja tentei a solucao de remover node modules e nada .

carlos@carlos-Latitude-E5440:~/projeto_inicial/alura_testes_angular-3f6b2019ce5483a34db18eeba3009fb431abca79/alurapic$ npm i npm WARN deprecated core-js@2.6.12: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3. loadDevDep:typescript → r ▐ ╢█████████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟ WARN engine @angular-devkit/build-angular@0.803.29: wanted: {"node":">= 10.9.0","npm":">= 6.2.0"} (current: {"node":"8.10.0","npm":"3loadDevDep:typescript → r ▀ ╢█████████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟ loadDevDep:typescript → g ▌ ╢█████████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟ npm WARN deprecated protractor@6.0.0: Protractor v6 has been deprecated because there is not a clear migration path for users. Consider upgrading to Protractor v7 if you use Node v10 or newer. loadDep:worker-plugin → r ▌ ╢█████████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟ WARN engine @angular-devkit/build-webpack@0.803.29: wanted: {"node":">= 10.9.0","npm":">= 6.2.0"} (current: {"node":"8.10.0","npm":"3.5.2"}) WARN engine @angular-devkit/core@8.3.29: wanted: {"node":">= 10.9.0","npm":">= 6.2.0"} (current: {"node":"8.10.0","npm":"3.5.2"}) WARN engine @angular-devkit/build-optimizer@0.803.29: wanted: {"node":">= 10.9.0","npm":">= 6.2.0"} (current: {"node":"8.10.0","npm":loadDep:worker-plugin → g ▄ ╢█████████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟ loadDep:worker-plugin → r ▀ ╢█████████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟ loadDep:worker-plugin → r ▌ ╢█████████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟ WARN engine @angular-devkit/architect@0.803.29: wanted: {"node":">= 10.9.0","npm":">= 6.2.0"} (current: {"node":"8.10.0","npm":"3.5.2loadDep:worker-plugin → a ▀ ╢█████████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟ npm ERR! Linux 4.15.0-72-generic npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "i" npm ERR! node v8.10.0 npm ERR! npm v3.5.2 npm ERR! code EMISSINGARG

npm ERR! typeerror Error: Missing required argument #1 npm ERR! typeerror at andLogAndFinish (/usr/share/npm/lib/fetch-package-metadata.js:31:3) npm ERR! typeerror at fetchPackageMetadata (/usr/share/npm/lib/fetch-package-metadata.js:51:22) npm ERR! typeerror at resolveWithNewModule (/usr/share/npm/lib/install/deps.js:456:12) npm ERR! typeerror at /usr/share/npm/lib/install/deps.js:457:7 npm ERR! typeerror at /usr/share/npm/node_modules/iferr/index.js:13:50 npm ERR! typeerror at /usr/share/npm/lib/fetch-package-metadata.js:37:12 npm ERR! typeerror at addRequestedAndFinish (/usr/share/npm/lib/fetch-package-metadata.js:82:5) npm ERR! typeerror at returnAndAddMetadata (/usr/share/npm/lib/fetch-package-metadata.js:117:7) npm ERR! typeerror at pickVersionFromRegistryDocument (/usr/share/npm/lib/fetch-package-metadata.js:134:20) npm ERR! typeerror at /usr/share/npm/node_modules/iferr/index.js:13:50 npm ERR! typeerror This is an error with npm itself. Please report this error at: npm ERR! typeerror http://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request: npm ERR! /home/carlos/projeto_inicial/alura_testes_angular-3f6b2019ce5483a34db18eeba3009fb431abca79/alurapic/npm-debug.log carlos@carlos-Latitude-E5440:~/projeto_inicial/a

1 resposta

Fala ai Carlos, tudo bem? Parece que você está utilizando a versão 8.x do Node e para o projeto funcionar as dependencias precisam do Node 10.x.

Provavelmente vai precisar fazer esse upgrade na versão do mesmo para funcionar.

Espero ter ajudado.