You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.
This is using yarn 1.0.2, building node-sass-4.5.3 on FreeBSD using node 8.5.0 and an offline mirror. The issue is mentioned in issue #1911, and while FreeBSD binaries are now available (thanks @saper), building is still a problem, because specifying the location of the node headers does not work and downloading the headers is not possible when offline. The cause of the problem, in a nutshell, is that the system installation of libuv cannot be found. The header file uv.h is located in /usr/local/include by default.
Adding the equivalent to npm's --nodedir with yarn --offline config set nodedir /usr/local causes this error.
c++ '-DNODE_GYP_MODULE_NAME=binding' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/usr/local/include/node -I/usr/local/src -I/usr/local/deps/uv/include -I/usr/local/deps/v8/include -I../../nan -I../src/libsass/include -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -std=c++0x -MMD -MF ./Release/.deps/Release/obj.target/binding/src/binding.o.d.raw -c -o Release/obj.target/binding/src/binding.o ../src/binding.cpp
In file included from ../src/binding.cpp:1:
../../nan/nan.h:48:10: fatal error: 'uv.h' file not found
#include <uv.h>
^~~~~~
Using yarn --offline config set nodedir /usr/local/include/node causes this error.
c++ '-DNODE_GYP_MODULE_NAME=binding' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/usr/local/include/node/include/node -I/usr/local/include/node/src -I/usr/local/include/node/deps/uv/include -I/usr/local/include/node/deps/v8/include -I../../nan -I../src/libsass/include -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -std=c++0x -MMD -MF ./Release/.deps/Release/obj.target/binding/src/binding.o.d.raw -c -o Release/obj.target/binding/src/binding.o ../src/binding.cpp
In file included from ../src/binding.cpp:1:
../../nan/nan.h:24:10: fatal error: 'node_version.h' file not found
#include <node_version.h>
^~~~~~~~~~~~~~~~
I have also tried downloading the node headers tarball and placing it in various locations, including .node-gyp/8.5.0, but the http GET is still attempted during yarn install --offline.
yarn --offline
fails to buildnode-sass
.This is using yarn 1.0.2, building node-sass-4.5.3 on FreeBSD using node 8.5.0 and an offline mirror. The issue is mentioned in issue #1911, and while FreeBSD binaries are now available (thanks @saper), building is still a problem, because specifying the location of the node headers does not work and downloading the headers is not possible when offline. The cause of the problem, in a nutshell, is that the system installation of
libuv
cannot be found. The header fileuv.h
is located in/usr/local/include
by default.Adding the equivalent to npm's
--nodedir
withyarn --offline config set nodedir /usr/local
causes this error.Using
yarn --offline config set nodedir /usr/local/include/node
causes this error.I have also tried downloading the node headers tarball and placing it in various locations, including
.node-gyp/8.5.0
, but the http GET is still attempted duringyarn install --offline
.NPM version:
Using yarn version 1.0.2
Node version:
v8.5.0
Node Process:
Node Platform
FreeBSD
Node architecture (
node -p process.arch
):x64
node-sass version
4.5.3
The text was updated successfully, but these errors were encountered: