gpt4 book ai didi

angular - 在 npm 安装期间无法读取 "es6-shim"的类型

转载 作者:太空狗 更新时间:2023-10-29 17:08:32 25 4
gpt4 key购买 nike

我正在关注 deborah kurata 的 angular2 入门类(class),了解 pluralsight 并安装了 node.js,然后运行 ​​npm install(在安装 cntlm 之后,因为我在公司代理防火墙后面)。但是我收到以下错误

> product-management@1.0.0 postinstall c:\Users\test\Documents\Visual Studio 2015\Projects\Angular2
> 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:\Users\test\Documents\Visual Studio 2015\Projects\Angular2

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

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 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! Please include the following file with any support request: npm ERR! c:\Users\test\Documents\Visual Studio 2015\Projects\Angular2\npm

最佳答案

如果您使用代理,您可以试试这个(它对我有用)。

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

proxy="http://proxyname:port"

Source of my answer

关于angular - 在 npm 安装期间无法读取 "es6-shim"的类型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36762929/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com