簡體   English   中英

無法使用NPM安裝TypeScript

[英]Unable to install TypeScript using NPM

我無法使用npm完成Typescript安裝。

正如文檔建議我運行以下命令:

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

http://status.npmjs.org/#day所有系統似乎都可以運行。 可能只是一個hickup。 再試一次🌹

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM