简体   繁体   English

Angular2为IE11安装dialog-polyfill失败

[英]Angular2 Installing dialog-polyfill for IE11 fails

I am trying to get dialogs to work with IE11 and found out that I have to install a polyfill. 我试图让对话框与IE11配合使用,发现我必须安装一个polyfill。 I tried to install it via npm and get multiple errors and I do not know how to fix them. 我试图通过npm安装它并得到多个错误,但我不知道如何解决。

Errors 失误

npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "dialog-polyfill"
npm ERR! node v4.5.0
npm ERR! npm  v2.15.9
npm ERR! code EPEERINVALID

npm ERR! peerinvalid The package typescript@1.8.10 does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer @angular/compiler-cli@0.5.0 wants typescript@^1.9.0-dev
npm ERR! peerinvalid Peer tsickle@0.1.6 wants typescript@^1.8.0 || ^1.9.0-dev
npm ERR! peerinvalid Peer @angular/tsc-wrapped@0.2.2 wants typescript@^1.9.0-dev`

Any solutions? 有什么办法吗?

Try installing locally; 尝试在本地安装; run this from the directory that contains package.json : 从包含package.json的目录运行此命令:

npm install --save dialog-polyfill

If you're still having trouble: try these steps: 如果仍有问题,请尝试以下步骤:

您需要将npm升级到3或更高版本:

npm install -g npm@latest.

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM