简体   繁体   English

sass / node-sass问题从github api下载v4.10.0

[英]sass/node-sass issues downloading v4.10.0 from github api

Am trying to use the github api to download the node-sass dependency v4.10.0 我正在尝试使用github api下载node-sass依赖v4.10.0

Using the github api i am able to get the latest release v4.11.0 by using latest as the release name, however the tag v4.10.0 or any other tag is not working with api calls to single release download. 使用github api,我可以通过使用最新版本作为发布名称来获取最新版本v4.11.0,但是标签v4.10.0或任何其他标签不适用于调用单个版本下载的api。 How to fix this. 如何解决这个问题。

Below works 下面的作品

https://api.github.com/repos/sass/node-sass/releases/latest

Below doesn't where v4.10.0 is a valid release tag 以下不是v4.10.0是有效发行标签的地方

https://api.github.com/repos/sass/node-sass/releases/v4.10.0

Error 错误

{
  "message": "Not Found",
  "documentation_url": "https://developer.github.com/v3/repos/releases/#get-a-single-release"
}

I found the answer thought I would post here so it would be useful to others, according to the documentation we can use tags to get individual versions 我找到了我想在此处发布的答案,因此对其他人有用,根据文档,我们可以使用标签来获取各个版本

The below worked for me 下面为我​​工作

https://api.github.com/repos/sass/node-sass/releases/tags/v4.10.0

Use this API and download URL we should be able to fetch all the dependencies if have issues with proxy or access gyp for node sass. 使用此API并下载URL,如果代理sass或代理sass的gyp有问题,我们应该能够获取所有依赖项。

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

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