2016-03-02 130 views
1

我无法使用npm完成Typescript安装。无法使用NPM安装TypeScript

由于documentation建议我运行下面的命令:

npm install -g typescript 

sudo npm install -g typescript 

-

,直到在该过程的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 

回答

3

要去http://status.npmjs.org/#day所有系统似乎都在运行。可能只是一个垃圾邮件。再试一次

+0

我可以确认它只是一个混帐。不管怎样,谢谢你! – fbid