【问题标题】:meteor 1.6 cannot add angular2-compilers流星 1.6 无法添加 angular2 编译器
【发布时间】:2018-04-17 03:10:08
【问题描述】:

在全新安装 Meteor 1.6 时,我正在尝试将 angular2-compilers 包添加到新的流星应用程序中,即

meteor create v16app
cd v16app
meteor add angular2-compilers

失败如下;

 => Errors while adding packages: 

While loading package angular2-compilers@0.6.6:
error: Command failed: C:\WINDOWS\system32\cmd.exe /c 
C:\Users\rober\AppData\Local\.meteor\packages\meteor-tool\1.6.0\mt-os.windows.x86_64\dev_bundle\bin\npm.cmd rebuild --update-binary
Cannot download "https://github.com/sass/node-sass/releases/download/v3.8.0/win32-x64-57_binding.node":

HTTP error 404 Not Found

我只是在从 1.5.2.2 升级时才注意到这个问题。

我该如何解决这个问题?任何帮助表示赞赏。

【问题讨论】:

    标签: meteor upgrade angular-meteor


    【解决方案1】:

    我们发布了新版本的编译器。 现在,就像 Angular 一样,它们只是 angular-compilers 而不是 angular2-compilers

    它现在工作得更好,并支持来自 Angular 的所有好东西,例如 AOT 编译、Angular Universal 和 SSR 以及延迟加载。

    在此处查看几个示例应用 - https://github.com/Urigo/angular-meteor/tree/master/examples/MeteorCLI

    【讨论】:

    • 非常感谢。我已经构建了该项目并且它可以工作(在 Windows 上稍作刺激)。但我有点困惑。我通过删除 angular2-compilers 并在服务器上添加 barbatus:typescript 解决了我的问题。我在客户端使用 Angular Cli + Meteor Client Bundler,并且在服务器上没有 angular-compilers 包的情况下一切正常。所以,我很困惑为什么我现在需要角度编译器?
    • 哦,我以为您也在客户端上使用 Meteor CLI。如果没有,那么你没有理由使用angular-compilers
    猜你喜欢
    • 1970-01-01
    • 2013-01-26
    • 1970-01-01
    • 1970-01-01
    • 2017-04-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多