2016-08-08 23 views
1

喜试图在 “故宫安装” 命令我刚开这个错误:无法读取分型为 “ES6-垫片”

Unable to read typings for "es6-shim". You should check the entry paths in "es6-shim.d.ts" are up to date

caused by Unable to connect to " https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/9807d9b701f58be068cb07833d2b24235351d052/es6-shim/es6-shim.d.ts "

caused by connect ETIMEDOUT 10.10.34.36:443

typings.json:

{ 
    "globalDependencies": { 
    "es6-shim": "registry:dt/es6-shim#0.31.2+20160602141504" 
    } 
} 

我是什么在这里做错了吗?

+0

你可以在浏览器中自己访问该URL吗? –

+0

@RichardSzalay是的,我可以 –

回答

1

10.10.34.36:443表示https://raw.githubusercontent.com已在您的国家过滤筛选。但现在有更好的方法来管理它。根据TS的新建议是使用NPM来管理你的分型:

npm install --save-dev @types/core-js 

这是一样的安装正常NPM包,但它在一开始有@types/。您可以在node_modules\@types文件夹中找到已安装的软件包。