简体   繁体   English

无法使用NPM安装TypeScript

[英]Unable to install TypeScript using NPM

I'm not able to complete the Typescript installation using npm. 我无法使用npm完成Typescript安装。

As the documentation suggest I run the following command: 正如文档建议我运行以下命令:

npm install -g typescript

or 要么

sudo npm install -g typescript

- -

It seems ok until at about 20% of the process it can't proceed and this is the error that gets logged out in the shell. 似乎没问题,直到大约20%的进程无法继续,这是在shell中记录的错误。

npm ERR! fetch failed https://registry.npmjs.org/typescript/-/typescript-1.8.5.tgz
npm WARN retry will retry, error on last attempt: Error: fetch failed with status code 504
npm ERR! fetch failed https://registry.npmjs.org/typescript/-/typescript-1.8.5.tgz
npm WARN retry will retry, error on last attempt: Error: socket hang up
npm ERR! fetch failed https://registry.npmjs.org/typescript/-/typescript-1.8.5.tgz
npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "typescript"
npm ERR! node v5.4.1
npm ERR! npm  v3.3.12

npm ERR! fetch failed with status code 504

Going to http://status.npmjs.org/#day all systems seem operational. http://status.npmjs.org/#day所有系统似乎都可以运行。 Probably just a hickup. 可能只是一个hickup。 Try again 🌹 再试一次🌹

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM