【发布时间】:2018-08-24 14:31:34
【问题描述】:
我在构建节点项目时遇到问题,特别是在 node:8.11.4 Docker 容器中编译 sass 时。我收到以下错误:
gyp info using node-gyp@3.8.0
gyp info using node@8.11.4 | linux | x64
.
.
.
In file included from ../src/binding.cpp:3:0:
../src/sass_context_wrapper.h:8:26: fatal error: sass/context.h: No such file or directory
#include <sass/context.h>
^
compilation terminated.
似乎错误是由以下原因引起的:
Cannot download "https://github.com/sass/node-sass/releases/download/v3.13.1/linux-x64-57_binding.node"
我知道这与代理无关,我已尝试直接下载文件,但也收到 404。我已确保在构建之前删除我的 package-lock.json 文件,以防万一出现问题使用 node-sass 的跨平台版本。
有什么办法可以解决这个问题吗?
【问题讨论】:
-
https://github.com/sass/node-sass/releases/download/v3.13.1/linux-x64-57_binding.node对我来说是 404...