johnpapa / lite-server

Lightweight node server
MIT License
2.31k stars 267 forks source link

typings install not working #133

Open dashng opened 6 years ago

dashng commented 6 years ago

Before you open an issue, please check if a similar issue already exists or has been closed before.

typings install & search not working

should be installed according to typings.json

Bug repro steps

warnings:

[root@ui-dalian-ued backend]# typings -- install dt~jasmine
typings ERR! message Unable to connect to "http://api.typings.org/entries/dt/jasmine/versions/latest"
typings ERR! caused by connect EINVAL 0.0.0.80:80 - Local (0.0.0.0:0)
typings ERR! 
typings ERR! cwd /home/servers/Tetration/tetration-data-analyzer/backend
typings ERR! system Linux 3.10.0-693.el7.x86_64
typings ERR! command "/usr/local/bin/node" "/usr/local/bin/typings" "--" "install" "dt~jasmine"
typings ERR! node -v v9.3.0
typings ERR! typings -v 2.1.1
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>
[root@ui-dalian-ued backend]# ls
build  gulpfile.js  index.html  index.html.1  latest  node_modules  nohup.out  package.json  package-lock.json  src  tsconfig.json
[root@ui-dalian-ued backend]# rm -rf .typingsrc 
[root@ui-dalian-ued backend]# ls
build  gulpfile.js  index.html  index.html.1  latest  node_modules  nohup.out  package.json  package-lock.json  src  tsconfig.json
[root@ui-dalian-ued backend]# typings -- install dt~jasmine
typings ERR! message Unable to connect to "https://api.typings.org/entries/dt/jasmine/versions/latest"
typings ERR! caused by connect EINVAL 0.0.0.80:80 - Local (0.0.0.0:0)
typings ERR! 
typings ERR! cwd /home/servers/Tetration/tetration-data-analyzer/backend
typings ERR! system Linux 3.10.0-693.el7.x86_64
typings ERR! command "/usr/local/bin/node" "/usr/local/bin/typings" "--" "install" "dt~jasmine"
typings ERR! node -v v9.3.0
typings ERR! typings -v 2.1.1
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>

Environment

dashng commented 6 years ago

I was bothered by this issue serveral days.

I add .typingsrc for proxy, but not working either.