无法读取"es6-shim"的类型在npm安装期间 [英] Unable to read typings for "es6-shim" during npm install

查看:153
本文介绍了无法读取"es6-shim"的类型在npm安装期间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在遵循deborah kurata的angular2复数入门教程,并安装了node.js,然后运行了npm install(在安装了cntlm之后,因为我位于公司代理防火墙的后面).但是我收到以下错误

I am following deborah kurata's angular2 getting started course on pluralsight and installed node.js and then ran the npm install (after installing cntlm as I am behind a corporate proxy firewall). However I am receiving the following error

> product-management@1.0.0安装后c:\ Users \ test \ Documents \ Visual Studio 2015 \ Projects \ Angular2
>输入安装

> product-management@1.0.0 postinstall c:\Users\test\Documents\Visual Studio 2015\Projects\Angular2
> typings install

输入错误!消息无法读取"es6-shim"的类型.你应该 检查"es6-shim.d.ts"中的输入路径是否最新输入ERR! 由于无法连接
" https://raw.githubusercontent.com/D efinitelyTyped/DefinitelyTyped/7de6c3dd94feaeb21f20054b9f30d5dabc5efabd/es6- shim/es6-shim.d.ts输入ERR!是由连接ECONNREFUSED引起的 103.245.222.133:443

typings ERR! message Unable to read typings for "es6-shim". You should check the entry paths in "es6-shim.d.ts" are up to date typings ERR! caused by Unable to connect to
"https://raw.githubusercontent.com/D efinitelyTyped/DefinitelyTyped/7de6c3dd94feaeb21f20054b9f30d5dabc5efabd/es6- shim/es6-shim.d.ts" typings ERR! caused by connect ECONNREFUSED 103.245.222.133:443

输入错误! cwd c:\ Users \ test \ Documents \ Visual Studio 2015 \ Projects \ Angular2

typings ERR! cwd c:\Users\test\Documents\Visual Studio 2015\Projects\Angular2

输入错误!系统Windows_NT 6.1.7601键入ERR!命令 "C:\ Program Files \ nodejs \ node.exe""c:\ Users \ vivekba \ 文件\ Visual Studio 2015 \ Projects \ Angular2 \ node_modules \ typings \ dist \ bin.js 在安装"中键入ERR!节点-v v5.10.1键入ERR!键入-v 0.7.12

typings ERR! system Windows_NT 6.1.7601 typings ERR! command "C:\Program Files\nodejs\node.exe" "c:\Users\vivekba\ Documents\Visual Studio 2015\Projects\Angular2\node_modules\typings\dist\ bin.js" "install" typings ERR! node -v v5.10.1 typings ERR! typings -v 0.7.12

输入错误!如果您需要帮助,可以在以下位置报告此错误: 呃! https://github.com/typings/typings/issues

typings ERR! If you need help, you may report this error at: typings ERR! https://github.com/typings/typings/issues

npm WARN可选跳过失败的可选依赖项 /chokidar/fsevents:npm WARN notsup与您的操作不兼容 系统或体系结构:fseve nts@1.0.11 npm ERR! Windows_NT 6.1.7601 npm ERR! argv"C:\ Program Files \ nodejs \ node.exe""C:\ Program Files \ nodejs \ node_modules \ npm \ bin \ npm-cli.js"安装"npm ERR! 节点v5.10.1 npm ERR! npm v3.8.3 npm错误!代码ELIFECYCLE npm ERR! product-management@1.0.0安装后:typings install npm ERR!出口 状态1 npm ERR! npm ERR!在product-management@1.0.0失败 安装后脚本"typings install". npm ERR!确保您有 安装了最新版本的node.js和npm. npm ERR!如果这样做,这 产品管理包npm ERR最有可能出现问题! 不与npm本身. npm ERR!告诉作者这对您失败 系统:npm ERR!键入install npm ERR!您可以获得信息 关于如何使用以下项目打开此项目的问题:npm ERR! npm错误 产品管理npm ERR!或者,如果不可用,您可以得到 他们的信息通过:npm ERR! npm所有者ls产品管理npm ERR! 上面可能还有其他日志记录输出.

npm WARN optional Skipping failed optional dependency /chokidar/fsevents: npm WARN notsup Not compatible with your operating system or architecture: fseve nts@1.0.11 npm ERR! Windows_NT 6.1.7601 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\ node_modules\npm\bin\npm-cli.js" "install" npm ERR! node v5.10.1 npm ERR! npm v3.8.3 npm ERR! code ELIFECYCLE npm ERR! product-management@1.0.0 postinstall: typings install npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the product-management@1.0.0 postinstall script 'typings install'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the product-management package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! typings install npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs product-management npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls product-management npm ERR! There is likely additional logging output above.

npm ERR!请在任何支持请求中包括以下文件: npm ERR! c:\ Users \ test \ Documents \ Visual Studio 2015 \ Projects \ Angular2 \ npm

npm ERR! Please include the following file with any support request: npm ERR! c:\Users\test\Documents\Visual Studio 2015\Projects\Angular2\npm

推荐答案

如果您是代理人的支持者,可以尝试一下(对我有用).

If you are behind a proxy you can try this (it worked for me).

创建一个.typingsrc文件,并在代理信息中添加以下行:

Create a .typingsrc file and add the following line with your proxy info:

proxy="http://proxyname:port"

我的答案的来源

这篇关于无法读取"es6-shim"的类型在npm安装期间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆