加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

angularjs – npm安装错误无法读取打字

发布时间:2020-12-17 09:17:36 所属栏目:安全 来源:网络整理
导读:我正在关注deborah kurata的angular2入门课程,并且安装了node.js,然后运行npm安装(安装cntlm后,我在公司代理防火墙后面):但是我收到以下错误 product-management@1.0.0 postinstall c:UserstestDocumentsVisual Studio 2015ProjectsAngular2 typings
我正在关注deborah kurata的angular2入门课程,并且安装了node.js,然后运行npm安装(安装cntlm后,我在公司代理防火墙后面):但是我收到以下错误
> product-management@1.0.0 postinstall c:UserstestDocumentsVisual Studio 2015ProjectsAngular2
> typings install

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

typings ERR! cwd c:UserstestDocumentsVisual Studio 2015ProjectsAngular2

typings ERR! system Windows_NT 6.1.7601
typings ERR! command "C:Program Filesnodejsnode.exe"     "c:Usersvivekba
DocumentsVisual Studio 2015ProjectsAngular2node_modulestypingsdist
bin.js" "install"
typings ERR! node -v v5.10.1
typings ERR! typings -v 0.7.12

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

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 Filesnodejsnode.exe" "C:Program Filesnodejs
node_modulesnpmbinnpm-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! Please include the following file with any support request:
npm ERR!     c:UserstestDocumentsVisual Studio 2015ProjectsAngular2npm
如果你是一个代理人,你可以尝试这个(它为我工作).

创建一个.typingsrc文件,并添加以下代码信息:

代理= “HTTP://的proxyName:端口”

Source of my answer

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读