【问题标题】:Meteor setup issues on WindowsWindows 上的 Meteor 设置问题
【发布时间】:2020-08-29 00:40:03
【问题描述】:

我们最近将我们的项目 Meteor 版本升级到 v1.8.2,但是在运行以下命令时:meteor update --all-packages,遇到了一些奇怪的错误。以下是其中一个错误的示例:

=> Errors while initializing project:

While loading package angular-compilers@0.3.4:
error: Command failed: C:\Windows\system32\cmd.exe /c
E:\Applications\Meteor\.meteor\packages\meteor-tool\1.10.2\mt-os.windows.x86_64\dev_bundle\bin\npm.cmd rebuild --update-binary
Cannot download "https://github.com/sass/node-sass/releases/download/v4.7.2/win32-x64-72_binding.node":

HTTP error 404 Not Found

Hint: If github.com is not accessible in your location
try setting a proxy via HTTP_PROXY, e.g.

export HTTP_PROXY=http://example.com:1234

or configure npm proxy via

一些附加信息: 检查日志后,似乎使用的流星工具是 1.10.2。对 v1.8.2 项目使用最新的流星工具会导致问题吗?

1 verbose cli   'E:\\Applications\\Meteor\\.meteor\\packages\\meteor-tool\\1.10.2\\mt-os.windows.x86_64\\dev_bundle\\bin\\node.exe',

有什么想法吗?

谢谢!

【问题讨论】:

  • 尝试升级到最新的node-sass 4.14.1可能是因为GitHub中缺少文件https://github.com/sass/node-sass/releases/download/v4.7.2/win32-x64-72_binding.node

标签: node.js meteor angular-meteor


【解决方案1】:

你能发布来自流星更新的完整日志吗?

你在使用fourseven:scss吗?因为它安装了自己的node-sass 版本,这可能是问题所在。 在此处查看版本兼容性表:https://github.com/Meteor-Community-Packages/meteor-scss 并检查fourseven:scss 的版本是否与兼容的流星版本匹配。

另一种方法是删除它,更新并重新安装大气包,这样它就不会妨碍更新程序的依赖解析器

请注意,如果您使用的是fourseven:scss,则无需在package.json 中添加node-sass

【讨论】:

  • 我最终在我的包文件中将fourseven锁定到了一个兼容版本(4.12.0),它工作正常,谢谢!
猜你喜欢
  • 2020-12-18
  • 1970-01-01
  • 1970-01-01
  • 2011-03-18
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-03-30
  • 2020-08-19
相关资源
最近更新 更多