1
resposta

Problemas com o comando "node ./node_modules/typings/dist/bin install dt~jquery --global --save"

Não consigo executar o seguinte comando:

node ./node_modules/typings/dist/bin install dt~jquery --global --save

depois de um certo tempo, apresenta a seguinte mensagem:

(node:10300) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): PopsicleError: Unable to connect to "https://api.typings.org/entries/dt/jquery/versions/latest" (node:10300) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejectio/ (node:10300) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): PopsicleError: Unable to / (node:10300) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3): PopsicleError: Unable to \ (node:10300) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 4): PopsicleError: Unable to | (node:10300) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 5): PopsicleError: Unable to typings ERR! message Unable to connect to "https://api.typings.org/entries/dt/jquery/versions/latest" typings ERR! caused by connect ETIMEDOUT 104.24.112.177:443 typings ERR! typings ERR! cwd C:\Users\14245\Desktop\cursos_Alura\01-alurapic\alurapic\client typings ERR! system Windows_NT 10.0.16299 typings ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\14245\Desktop\cursos_Alura\01-alurapic\alurapic\client\node_modules\typings\dist\bin" "install" "dt~jquery" "--global" "--save" typings ERR! node -v v8.9.4 typings ERR! typings -v 1.5.0 typings ERR! code EUNAVAILABLE typings ERR! typings ERR! If you need help, you may report this error at: typings ERR! https://github.com/typings/typings/issues

como proceder ???

ps: também não consegui executar o comando: "npm run typings search jquery".

1 resposta

Bom dia!

Baixei o projeto e funcionou sem qualquer problema aqui (já já te passo uma ideia do que possa ser):

MacBook-Pro-de-Flavio:client flavioalmeida$ ./node_modules/typings/dist/bin install dt~jquery --global --save"
> 
MacBook-Pro-de-Flavio:client flavioalmeida$ node ./node_modules/typings/dist/bin install dt~jquery --global --save
jquery
└── (No dependencies)

MacBook-Pro-de-Flavio:client flavioalmeida$

Se você esta executando o comando em uma rede corporativa atrás de um proxy eles podem estar bloqueando o acesso ao repositório do typings.

A versão do Node que estou saindo v8.9.4 no MAC.

Experimenta desligar antivirus ou algo parecido.

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software